https://github.com/sud3801/snake_game
Snake Game using Java ๐
https://github.com/sud3801/snake_game
awt game java swing
Last synced: 9 months ago
JSON representation
Snake Game using Java ๐
- Host: GitHub
- URL: https://github.com/sud3801/snake_game
- Owner: sud3801
- Created: 2025-04-05T12:53:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-05T13:33:25.000Z (about 1 year ago)
- Last Synced: 2025-04-05T14:27:30.859Z (about 1 year ago)
- Topics: awt, game, java, swing
- Language: Java
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game ๐ฎ
A modernized version of the classic Snake game implemented in Java, featuring smooth graphics, arcade-style effects, and intuitive gameplay. ๐
## Features โจ
- **Smooth Gameplay**: Enjoy fluid animations with antialiasing and gradient effects.
- **Arcade-Style Design**: Includes retro fonts, glowing text effects, and vibrant colors.
- **Dynamic Grid**: A visually appealing grid layout for better gameplay experience.
- **Wrap-Around Mechanics**: The snake can pass through walls and appear on the opposite side.
- **Interactive UI**: Displays the score in real-time and shows game-over messages with restart instructions.
## Gameplay Instructions ๐ฎ
- Use the arrow keys to control the snake's direction:
- `โ` Up
- `โ` Down
- `โ` Left
- `โ` Right
- Collect apples to grow your snake and increase your score.
- Avoid colliding with your own body!
- Press `Space` to restart the game after a Game Over.
## How to Run ๐
1. Clone this repository:
```bash
git clone https://github.com/sud3801/snake_Game.git
```
2. Compile the program:
```bash
cd snake_Game
mkdir bin
javac -d bin src/com/snakeGame/*.java
```
3. Run the program
```bash
cd ..
java -cp bin com.snakeGame.Game
```
## Screenshots ๐ธ
### Game Start Screen:

### GamePlay:

### Game Over Screen:

## Project Structure ๐
```
snake_Game/
โโโ bin/
โ โโโ com/
โ โโโsnakeGame
โ โโโ(all class files)
โโโ src/
โ โโโ com/
โ โโโsnakeGame/
| โโโGame.java #To start the game
| โโโGameFrame.java #Represents game panel
| โโโGamePanel.java # Main game logic
โโโ README.md # Project documentation
```
## Technologies Used ๐ ๏ธ
- **Programming Language**: [Java](https://www.oracle.com/java/)
- **Graphics**: Java Swing and AWT for rendering
## Future Enhancements ๐
- Add difficulty levels (easy, medium, hard).
- Introduce new power-ups or obstacles.
- Implement multiplayer mode.
- Add sound effects and background music.
## Contributing ๐ค
Contributions are welcome! Feel free to fork this repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
Enjoy playing Snake! ๐โจ