Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinates ¶
Coordinates contains the coordinates of the snake's head
type Direction ¶
type Direction uint8
Direction is the type that reppresents the current direction of the snake
type Snake ¶
type Snake struct { Direction Direction Length int Positions []Coordinates }
Snake contains all the snake information
type Speed ¶
type Speed int8
Speed reppresent the speed of the snake during the game
VERYSLOW tells the snake to go very slowly (500) SLOW tells the snake to go slowly (300ms) NORMAL tells the snake to go at normal speed (200ms) FAST tells the snake to go fast (100ms) VERYFAST tells the snake to go very fast (50ms)
Click to show internal directories.
Click to hide internal directories.