swarm-0.6.0.0: 2D resource gathering game with programmable robots
LicenseBSD-3-Clause
Safe HaskellSafe-Inferred
LanguageHaskell2010

Swarm.TUI.Controller.EventHandlers.Frame

Contents

Description

Handling Frame events.

Synopsis

Documentation

runFrameUI :: Bool -> EventM Name AppState () Source #

Run the game for a single frame (i.e. screen redraw), then update the UI. Depending on how long it is taking to draw each frame, and how many ticks per second we are trying to achieve, this may involve stepping the game any number of ticks (including zero).

runGameTickUI :: EventM Name AppState () Source #

Run the game for a single tick, and update the UI.

Constants