Module

Emo8.Game

Package
purescript-emo8
Repository
opyapeus/purescript-emo8

#Game Source

class Game s  where

Emo8 basic game class.

Update, draw, sound functions are called in order each frames.

  • s is a game state type

Members

  • update :: Input -> s -> Update s

    It takes input and current state and should return next state.

  • draw :: s -> Draw Unit

    It takes next state and runs some draw operations.

  • sound :: s -> Sound Unit

    It takes next state and runs some sound operations.