https://github.com/johndev19/java-snake-game
A simple and fun Snake Game implemented in Java using Swing. The game features smooth animations, particle effects, and a colorful interface.
https://github.com/johndev19/java-snake-game
game game-development gamedev java snake snake-game
Last synced: about 1 year ago
JSON representation
A simple and fun Snake Game implemented in Java using Swing. The game features smooth animations, particle effects, and a colorful interface.
- Host: GitHub
- URL: https://github.com/johndev19/java-snake-game
- Owner: JohnDev19
- License: mit
- Created: 2024-11-02T10:46:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-02T10:58:54.000Z (over 1 year ago)
- Last Synced: 2025-01-30T06:27:29.932Z (over 1 year ago)
- Topics: game, game-development, gamedev, java, snake, snake-game
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake Game
A simple and fun Snake Game implemented in Java using Swing. The game features smooth animations, particle effects, and a colorful interface.
## Features
- Classic Snake gameplay
- Food spawning with particle effects
- Smooth animations and glowing effects
- Responsive controls
- Score tracking
- Game Over screen with restart option
## Requirements
- Java Development Kit (JDK) 8 or higher
- An IDE or text editor for Java development (e.g., IntelliJ IDEA, Eclipse, or Visual Studio Code)
## Getting Started
### Clone the Repository
```bash
git clone https://github.com/JohnDev19/Java-Snake-Game.git
cd Java-Snake-Game
```
### Compile the Code
Make sure you have the JDK installed. You can compile the Java files using the command line:
``` bash
javac *.java
```
### Run the Game
After compiling, run the game using the following command:
```bash
java SnakeGame
```
### Controls
- Arrow Keys: Move the snake in the respective direction.
- Space Bar: Restart the game after a Game Over.
### Contributing
Contributions are welcome! If you have suggestions or improvements, feel free to create a pull request or open an issue.
### License
This project is licensed under the MIT License - see the [LICENCE](LICENSE) file for details.