Skip to content

Latest commit

 

History

History
103 lines (75 loc) · 4.19 KB

File metadata and controls

103 lines (75 loc) · 4.19 KB

Stargazers Issues

Regular user setup

Only for Windows for batch execution. Other Operating System requires manual command execution.

  • Simply execute Run.bat file with Run 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

How to play game

A simple snake game app in java

There are currently 6 features implemented.

  1. User can use arrow keys to move the snake
  2. User can see previous scores
  3. User can continue game from the previous play, or can decide to play new game
  4. 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)

Requirements for developer setup

  • 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.

Dependencies


Game screen

game_screen

Snake Game

A basic snake game program with progress load & save

View Demo · Report Bug · Request Feature

Demo image and video

Video

main_menu

Screen_board

screen_board

(back to top)