GitXplorerGitXplorer
d

Snake

public
2 stars
0 forks
1 issues

Commits

List of commits on branch develop.
Unverified
52a4c876fa872c6d35c38aa1a71d2b1f2b2740e4

Add new pipeline and other fun stuff

CCyB3RC0nN0R committed 5 years ago
Unverified
a8908f7e13b5f3c3dad57c1ccc339d6f3dfe38a0

Simplify snake drawing and movement calculation

CCyB3RC0nN0R committed 5 years ago
Unverified
5651ea76b07f7329b2c3cac1cb34a0f25671b2af

Remove some try statements and switches

CCyB3RC0nN0R committed 5 years ago
Verified
a0b0c09e1d77c075f4dacf798b20615df8325ce9

Merge pull request #4 from delvh/feature/simplification

CCyB3RC0nN0R committed 5 years ago
Unverified
7ca0a14ea2f80c3987934cdc2e16c9ae91bf73cd

Simplify FoodFactory#generateFoodLocation

CCyB3RC0nN0R committed 5 years ago
Unverified
9131d0e2fd9a3894373775df084b5bdf395b6012

Simplify FoodFactory#generateFood

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