GitXplorerGitXplorer
d

Snake

public
2 stars
0 forks
1 issues

Commits

List of commits on branch develop.
Unverified
c7035ff2c5a2a8e624bb7e03eef194914108d21c

Simplified some calculations

CCyB3RC0nN0R committed 5 years ago
Verified
ad329447a9e199ee641575ea5126abd8b1ac98d1

Fix missing ImageIcon for PlayButton and repeated EndScreen Spawning (#3)

CCyB3RC0nN0R committed 5 years ago
Unverified
ab584c187d21c6155a4bae95d4cc7039dbb14bfe

Provisorically fixed bug resulting in an empty Endscreen

ddelvh committed 5 years ago
Verified
30011a078804a7998bbf747e5484116cb5e8ef1c

Update README.md

ddelvh committed 5 years ago
Verified
2f8a613b56ed662491a5fd790d9c828d1812d29c

updated project description

ddelvh committed 5 years ago
Verified
8ff179a27de2ae2588428db54cfd34706821f015

Collision checking for outer bounds works apparentlly solely on Windows, commented out for now (#1)

ddelvh committed 5 years ago

README

The README file for this repository.

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.