Documentation ¶
Index ¶
Constants ¶
View Source
const ( MOVE keyboardEventType = 1 + iota RETRY END SPEED )
Keyboard events
View Source
const ( RIGHT direction = 1 + iota LEFT UP DOWN )
Allowed snake movement directions
Variables ¶
View Source
var (
KeyboardEventsChan = make(chan KeyboardEvent)
)
Functions ¶
This section is empty.
Types ¶
type KeyboardEvent ¶
type KeyboardEvent struct { EventType keyboardEventType Key termbox.Key }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.