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.
- 🎮 Smooth movement using
AnimationTimer - ⌨️ Keyboard controls (Arrow keys: ↑, ↓, ←, →)
- 🍏 Random food generation
- 🔄 Collision detection with walls and itself
- ❌ Game Over message upon losing
- Java 11+
- JavaFX
- Clone the repository:
git clone https://github.com/Ne052003/SnakekDesk.git cd SnakekDesk - Ensure JavaFX is configured in your environment.
- Compile and run the game:
Or, if using an IDE like NetBeans, run the
mvn clean compile exec:java
Mainmain class.
- ↑ Move up
- ↓ Move down
- ← Move left
- → Move right
- 🏆 Add difficulty levels
- 🔊 Implement sound effects and visual animations
Developed by Neoly Moreno. Feel free to contribute or leave suggestions!


