Only for Windows for batch execution. Other Operating System requires manual command execution.
-
Simply execute
Run.bat
file withRun As Administrator
. Follow instructions from batch file. This batch will download and install jdk 17 and setup the environment variables if not set. -
If you wish to set up by your own, please install jdk17+ and have it set as environment variable. Then run following command at the root of the downloaded file.
java -jar Snake-Game.jar
A simple snake game app in java
There are currently 6 features implemented.
- User can use arrow keys to move the snake
- User can see previous scores
- User can continue game from the previous play, or can decide to play new game
- Snake gets faster every 10 eat, also reduces the amount of apple to eat
-
For initial start, snake usually starts at the middle. Snake cannot move in reverse direction, because the snake cannot eat itself.
-
You can configure configuration file in
src/config/config.json
to adjust the game feature.(Removing file will not run the program)
-
Java must be installed first, please make sure that your machine is operable with Java version higher than 17+ here In oder to execute the program, please download the file by forking this repository. Or you can download a zipfile from above tab. Or you may use existing batch file for auto setup.
-
Data files are version sensitive, app version mismatch will cause error on data load.
- Jackson databind 2.15.2 - to read JSON file: download jar package for manual setup
- Jackson's annotation 2.15.2 - to read JSON file: download jar package for manual setup
- Jackson core 2.15.2 - to read JSON file: download jar package for manual setup
Game screen
A basic snake game program with progress load & save
View Demo
·
Report Bug
·
Request Feature