gloss-banana- An Interface for gloss in terms of a reactive-banana Behavior.

Safe HaskellNone






:: Display

The display method

-> Color

The background colour

-> Int

The refresh rate, in Hertz

-> (forall t. Frameworks t => Event t Float -> Event t InputEvent -> Moment t (Behavior t Picture))

A Moment t action to generate the Picture Behavior, taking the refresh and input Events with respect to which to build it. The refresh event generates a Float indicating the time delta since the last refresh.

-> IO () 

Play the game in a window, updating when the value of the provided Behavior t Picture changes.

type InputEvent = EventSource

A useful type synonym for Gloss event values, to avoid confusion between Gloss and ReactiveBanana.