https://github.com/nicolaspetrov/snake-game
The classic Snake game on Java.
https://github.com/nicolaspetrov/snake-game
example-app java
Last synced: 8 months ago
JSON representation
The classic Snake game on Java.
- Host: GitHub
- URL: https://github.com/nicolaspetrov/snake-game
- Owner: NicolasPetrov
- License: gpl-3.0
- Created: 2024-07-23T00:35:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T16:55:40.000Z (over 1 year ago)
- Last Synced: 2024-12-27T04:11:49.843Z (over 1 year ago)
- Topics: example-app, java
- Language: Java
- Homepage:
- Size: 18.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Snake game

The classic Snake game on Java.
**Implemented:**
* Different levels of difficulty easy, medium, high (the initial speed level depends on the difficulty + during the game the speed is adjusted based on the score by modifying the gameSpeed variable and updating the Timer delay in adjustSpeed() method);
* Scoring system (The score is increased by 10 for normal food);
* Bonuses for special food (The score increases by 50 for special food + special food is randomly spawned with a 20% chance when regular food is spawned. It is handled in the spawnFood() method and checked in the move() method);
* Sound effects and music.
Background music for the game is generated by Suno neural network, sound effects are taken from here - https://zvukipro.com/eda-napitki/253-zvuki-poedaniya-edy.html