Skip to content

No-man1234/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake Game built using Java and Swing. Control the snake, collect food, and grow longer while avoiding collisions with your own body. The game features smooth gameplay, a grid system, and wrap-around screen mechanics for endless fun!

Features

  • Grid-Based Movement: Move the snake up, down, left, or right on a grid.
  • Food Collection: Eat food to grow longer.
  • Wrap-Around Mechanics: Snake wraps around the edges of the screen.
  • Game Over: Ends when the snake collides with itself.
  • Score Display: Track your score based on the snake's length.

How to Play

  • Use the arrow keys to control the snake:
    • Up Arrow: Move Up
    • Down Arrow: Move Down
    • Left Arrow: Move Left
    • Right Arrow: Move Right
  • Avoid colliding with the snake's body.
  • Press Space to restart when the game is over.
  • Press 0 to exit the game.

Installation

  1. Clone the repository:
    git clone https://github.com/No-man1234/SnakeGame.git

About

A classic Snake Game built with Java and Swing. Control a growing snake as it eats food, while avoiding collisions with its own body. Features smooth animations, a grid-based system, and wrap-around screen mechanics. A fun project demonstrating Java programming and basic game logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages