Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldSymbol = ' ' SnakeSymbol = '▇' BorderSymbol = '▇' AppleSymbol = '●' )
Variables ¶
This section is empty.
Functions ¶
func AnimationCycle ¶
func EventCycle ¶
Types ¶
type Configuration ¶
type Field ¶
type Field struct { Screen *tcell.Screen Game Game X, Y int Width, Height int Style tcell.Style Cells []Cell Snake *Snake Apples []Apple }
type Game ¶
type Game struct { Screen *tcell.Screen Field *Field Score *Score Width, Height int Ended bool Styles Configuration }
type Score ¶
func (*Score) UpdateScore ¶
func (score *Score) UpdateScore()
Click to show internal directories.
Click to hide internal directories.