Skip to content

SnakeDesk is a version of the classic snake game, developed as a desktop application in Java. The goal is to control a snake that grows by eating food while avoiding colliding with edges and itself. The game features a simple graphical interface, intuitive controls and fluid mechanics for a nostalgic and fun experience.

Notifications You must be signed in to change notification settings

Ne052003/SnakekDesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game in JavaFX

Snake Game is a classic arcade-style game developed in Java using JavaFX. The snake moves across a grid, consumes food to grow, and the game ends if it collides with the borders or itself.

🚀 Features

  • 🎮 Smooth movement using AnimationTimer
  • ⌨️ Keyboard controls (Arrow keys: ↑, ↓, ←, →)
  • 🍏 Random food generation
  • 🔄 Collision detection with walls and itself
  • Game Over message upon losing

🛠️ Technologies Used

  • Java 11+
  • JavaFX

📌 Installation & Execution

  1. Clone the repository:
    git clone https://github.com/Ne052003/SnakekDesk.git
    cd SnakekDesk
  2. Ensure JavaFX is configured in your environment.
  3. Compile and run the game:
    mvn clean compile exec:java
    Or, if using an IDE like NetBeans, run the Main main class.

🎮 Game Controls

  • Move up
  • Move down
  • Move left
  • Move right

📷 Screenshots

Front Page Game Board Game Over

🔮 Future Improvements

  • 🏆 Add difficulty levels
  • 🔊 Implement sound effects and visual animations

👨‍💻 Author

Developed by Neoly Moreno. Feel free to contribute or leave suggestions!

About

SnakeDesk is a version of the classic snake game, developed as a desktop application in Java. The goal is to control a snake that grows by eating food while avoiding colliding with edges and itself. The game features a simple graphical interface, intuitive controls and fluid mechanics for a nostalgic and fun experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published