Classes
Class | Description | |
---|---|---|
Body | ||
Chunk |
This class holds the data for the chunk and moves the chunk to random locations after
being consumed.
View code on GitHub | |
Game |
This is the main game class holding the control of the entire snake game, user input and the
interaction of the snake with the borders and the chunks
View code on GitHub | |
Menu | ||
Snake |
This class holds data about the snake body and checks for snake collisions with either
itself or with the borders and whether the snake must grow in size.
View code on GitHub |