Documentation ¶
Overview ¶
Package ctrl implements the game logic. This can be thought of as the Controller part of an MVC architecture.
This package, the engine processes events from the clients (received and forwarded by the view package), and is responsible to calculate the next phases of the game, move objects, and update the image of the Labyrinth.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoopDelay = 50 // ~20 FPS
LoopDelay is the delay between the iterations of the main loop of the game engine, in milliseconds.
Functions ¶
func StartEngine ¶
func StartEngine()
StartEngine starts the game engine in a new goroutine and returns as soon as possible.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.