Skip to content

Simple Snake game example coded with java language

Notifications You must be signed in to change notification settings

MarcoBackman/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Simple Snake game example coded with java language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published