{"id":21607473,"url":"https://github.com/isurusankhajith/supersnake","last_synced_at":"2025-03-18T15:21:29.682Z","repository":{"id":255828658,"uuid":"848687342","full_name":"IsuruSankhajith/SuperSnake","owner":"IsuruSankhajith","description":"This is a classic Snake game implemented in Java using the Swing library. The game involves controlling a snake that moves around the screen, eating apples to grow in size while avoiding collisions with the walls or its own body. The objective is to achieve the highest score possible.","archived":false,"fork":false,"pushed_at":"2024-09-05T16:04:40.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T19:35:50.741Z","etag":null,"topics":["java","swing","swing-gui"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IsuruSankhajith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T08:10:34.000Z","updated_at":"2024-09-07T08:28:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"f501e438-0921-4c7b-afa2-79b337063014","html_url":"https://github.com/IsuruSankhajith/SuperSnake","commit_stats":null,"previous_names":["isurusankhajith/supersnake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsuruSankhajith%2FSuperSnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsuruSankhajith%2FSuperSnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsuruSankhajith%2FSuperSnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IsuruSankhajith%2FSuperSnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IsuruSankhajith","download_url":"https://codeload.github.com/IsuruSankhajith/SuperSnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246552,"owners_count":20422459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","swing","swing-gui"],"created_at":"2024-11-24T20:31:14.017Z","updated_at":"2025-03-18T15:21:29.628Z","avatar_url":"https://github.com/IsuruSankhajith.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# SuperSnake 🐍\n\nThis is a classic Snake game implemented in Java using the Swing library. The game involves controlling a snake that moves around the screen, eating apples to grow in size while avoiding collisions with the walls or its own body. The objective is to achieve the highest score possible.\n\n## Table of Contents\n\n- [Game Features](#game-features)\n- [Installation](#installation)\n- [How to Play](#how-to-play)\n- [Demonstration](#Demonstration)\n- [Technologies Used](#technologies-used)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Game Features\n\n- **Classic Gameplay:** A simple yet addictive game where you control a snake and try to eat as many apples as possible.\n- **Dynamic Snake Growth:** The snake grows longer as it eats apples.\n- **Randomized Apple Placement:** Apples appear at random locations on the screen.\n- **Game Over Screen:** A game over screen is displayed when the snake collides with itself or the screen borders.\n- **Colorful Snake:** Each segment of the snake is colored differently for a more vibrant visual effect.\n\n## Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/your-username/snake-game-java.git\n   ```\n\n2. **Navigate to the project directory:**\n   ```bash\n   cd snake-game-java\n   ```\n\n3. **Compile and run the game:**\n   ```bash\n   javac GamePanel.java\n   java GamePanel\n   ```\n\n## How to Play\n\n- **Movement:** Use the arrow keys (`↑`, `↓`, `←`, `→`) to control the direction of the snake.\n- **Objective:** Eat the red apples to grow in length and score points.\n- **Game Over:** The game ends when the snake collides with the walls or its own body. The final score will be displayed.\n\n## Demonstration\n\n https://github.com/user-attachments/assets/d5821981-86bf-4b39-b467-7f004d252c67\n\n## Technologies Used\n\n- **Java:** The core programming language used to develop the game.\n- **Swing:** Java's GUI widget toolkit used for creating the game's user interface.\n- **AWT:** Abstract Window Toolkit, used for handling graphics and events.\n\n## Contributing\n\nContributions are welcome! If you have any ideas for improvements or new features, feel free to fork the repository and submit a pull request.\n\n1. **Fork the repository**\n2. **Create a new branch:** `git checkout -b feature/your-feature-name`\n3. **Commit your changes:** `git commit -m 'Add some feature'`\n4. **Push to the branch:** `git push origin feature/your-feature-name`\n5. **Open a pull request**\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisurusankhajith%2Fsupersnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisurusankhajith%2Fsupersnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisurusankhajith%2Fsupersnake/lists"}