ctrl

package
v0.0.0-...-6c50e3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL