Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Game ¶
type Game struct { Running bool EventQueue chan termbox.Event Level Level Player Entity Entities []Entity }
Game is our container for all game data. We bind methods to it in order to avoid creating global variables and global state.
func (*Game) HandleInput ¶
HandleInput processes termbox events and changes game state accordingly.
Click to show internal directories.
Click to hide internal directories.