Skip to content

The Snake Game project in Java uses Swing and AWT to create an interactive arcade game where a snake moves, eats apple, grows, and avoids collisions.

License

Notifications You must be signed in to change notification settings

ShubhamKumarRaman/Snake_Game_Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake_Game_Java

The Snake Game project in Java uses Swing and AWT to create an interactive arcade game where a snake moves, eats apple, grows, and avoids collisions.

Snake Game in Java (Swing & AWT)

🐍 Project Overview

This project is a simple Snake Game implemented in Java using Swing and AWT. The game involves controlling a snake to eat food, grow in size, and avoid collisions with the walls and itself.

🚀 Features

  • Classic snake game mechanics
  • Responsive keyboard controls
  • Real-time score tracking
  • Simple and intuitive UI

🛠️ Technologies Used

  • Java
  • Java Swing
  • Java AWT

⚙️ How to Run

  1. Clone the repository.
  2. Compile the Java files using javac *.java.
  3. Run the game with java SnakeGame.

🎮 Controls

  • Arrow Keys: Move the snake (Up, Down, Left, Right)

🖼️ Screenshots

📜 License

This project is licensed under the MIT License. Feel free to use, modify, and distribute it with attribution.

MIT License

Enjoy the game! 🎯

About

The Snake Game project in Java uses Swing and AWT to create an interactive arcade game where a snake moves, eats apple, grows, and avoids collisions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages