GitXplorerGitXplorer
d

Snake

public
2 stars
0 forks
1 issues

Commits

List of commits on branch develop.
Unverified
f7fbc8b3e42a24d896445b9d773dc6718132c89c

Fixed text on Startscreen

ddelvh committed 5 years ago
Unverified
daf55abd937c00bbe8f03222dd8118824635ecfb

Commented any usage of images out

ddelvh committed 5 years ago
Unverified
b5845894594591a95fb6f8ff6f0e21ca0539bd00

Fixed issue with wrong WindowConstant

ddelvh committed 5 years ago
Verified
a039837e893d5b934b4257ee2af17b45e7aa76c7

Merge pull request #5 from delvh/feature/optimized_pipeline

CCyB3RC0nN0R committed 5 years ago
Verified
04931dfd9919b088df5214c3e4a741ed87d1e00a

Apply suggestions from code review

CCyB3RC0nN0R committed 5 years ago
Unverified
7c55e049cfebd256c779070458c58648cb4e2c5e

Add ol' JDoc

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.