spice-0.1.0.2: An FRP-based game engine written in Haskell.

Safe HaskellNone
LanguageHaskell2010

FRP.Spice.Game

Description

This module provides the API which people must use to define a game within the scope of Spice.

Synopsis

Documentation

type DeltaTime = Float Source

A synonym to make the update function more self-documenting.

class Game a where Source

The class which is to be used in the startEngine function. update provides the API to update on every tick (purely), an render provides the API to render every frame.

Methods

update :: DeltaTime -> Input -> a -> a Source

render :: a -> IO () Source