Skip to content

harshkumar18-bzz/Snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

A modern implementation of the classic Snake game built with Java Swing, featuring smooth graphics, animated snake eyes, and a gradient visual design.

Java Swing

✨ Features

  • 🎮 Smooth Gameplay - Responsive controls with collision detection
  • 👀 Animated Snake - Snake head with directional eyes that follow movement
  • 🎨 Modern Graphics - Gradient effects, rounded corners, and grid background
  • 📊 Score Tracking - Real-time score and snake length display
  • 🔄 Restart Option - Quick restart with spacebar after game over
  • ⌨️ Dual Controls - Arrow keys or WASD for movement
  • 🚫 180° Turn Prevention - Snake cannot reverse direction instantly

🎮 Controls

Key Action
or W Move Up
or S Move Down
or A Move Left
or D Move Right
SPACE Restart Game (after Game Over)

🚀 Getting Started

Prerequisites

  • Java Development Kit (JDK) 8 or higher
  • Any Java IDE (IntelliJ IDEA, Eclipse, NetBeans) or command line

ScreenShots

image

About

made a snake game using java and GUI one of my starter project for learning and practical application of concept

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages