Normal Snake gameplay, but hardware accelerated
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
delvh 3fe0bb72da
Update README.md
1 year ago
.settings Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago
src/main Fixed text on Startscreen 1 year ago
.classpath Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago
.gitignore Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago
.project Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago
LICENSE Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago
README.md Update README.md 1 year ago
pom.xml Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1) 2 years ago

README.md

Snake

My advanced Hello World program is a version of the old game Snake.

Features

  • normal playing experience of Snake but hardware-accelerated
  • 5 different fruits that can be eaten to enlarge the Snake
  • theoretically Start- and Endscreen, currently mostly unused
  • theoretically visual display whether a result is good or bad, commented out for now as it does not appear to work as expected

Classes

  • Snake:
    • stores the body parts, their position and the general direction of the Snake
    • checks, whether the Snake touches itself, the outer bounds or food
  • Main:
    • the class where public static void main(String[] args){} is located
    • stores the GameWindow used
  • GameWindow:
    • displays all visual components used in the game
    • stores the Snake object
  • FoodFactory:
    • generates new Food
  • other classes in the ui-package:
    • as the name suggests, defines the visual appearance before and after games

JAR of the final version

If you follow this link and click on release "Snake - Rattlesnake version", you can download the runnable JAR of how the project currently looks like.