Skip to content

archieblaber/Java-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

alt text

Author - Archie Blaber

Description

Snake is a classic arcade game originating in the 1970s which involves controlling a growing snake to consume food, and has remained a popular as time went on. I have made an adapted version of this snake game, introducing bombs, difficulties, customisable backgrounds, the ability to mute the music. While adding all these features, I have tried to keep the nostalgic feel of the classic snake arcade game.

How to run

  1. Unzip the downloaded file
  2. Open the file in IntelliJ
  3. Ensure that the project SDK version is openjdk-21*
  4. Open the main class and run it

*Check this by going into File -> Project Structure -> Project

How to play

Playing the game

  1. Once your game has loaded, enter your name and click save or enter
  2. Click start on the main menu
  3. Then select a difficulty
  4. Once you select a difficulty you will start the game
  5. The snake can be controlled with the arrow keys
  6. Collect food to increase snake size and score by 10
  7. In medium, bombs will decrease snakes size by 3
  8. In hard, bombs will end the game
  9. Be careful! bombs will move after every food eaten

Settings

  1. The settings menu can be accessed through the main menu
  2. You will find two backgrounds on this menu and a mute button
  3. These backgrounds can be switched by clicking them
  4. The music can be muted by pressing the speaker icon
  5. It can then be unmuted by pressing the image again

Leaderboard

  1. There are three leaderboards, easy, medium and hard
  2. These can be sorted by clicking on the header of each column
  3. They display username and score
  4. Clicking once sorts by ascending
  5. Clicking twice sorts by descending
  6. Clicking again resets it

About

Java Snake Game built using OOP principles, javafx and MVC architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published