| License | BSD-3-Clause |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Swarm.TUI.Controller.EventHandlers.Frame
Contents
Description
Handling Frame events.
Synopsis
- runFrameUI :: Bool -> EventM Name AppState ()
- runGameTickUI :: EventM Name AppState ()
- ticksPerFrameCap :: Int
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).