Module

Graphics.Glapple.GameRunnerM

Package
purescript-glapple
Repository
yukikurage/purescript-glapple

#runChildGameM Source

runChildGameM :: forall s g i o childG childI childO. GameSpecM s childG childI childO -> (childO -> GlappleM s g i o Unit) -> GlappleM s g i o (GameId s childI)

Create a new child game within the current game.

#runChildGameM_ Source

runChildGameM_ :: forall s g i o childG childI childO. GameSpecM s childG childI childO -> GlappleM s g i o (GameId s childI)

#runGameM Source

runGameM :: forall s g i o. Ord s => Number -> CanvasElement -> CanvasSpec -> Array (SpriteData s) -> GameSpecM s g i o -> (o -> Effect Unit) -> Effect (GameId s i)

Making Games at the Top Level.

#runGameM_ Source

runGameM_ :: forall s g i o. Ord s => Number -> CanvasElement -> CanvasSpec -> Array (SpriteData s) -> GameSpecM s g i o -> Effect (GameId s i)

runGameM without outputHandler

#runGameWithM Source

runGameWithM :: forall s g i o childG childI childO. GameId s childI -> GameSpecM s childG childI childO -> (childO -> GlappleM s g i o Unit) -> GlappleM s g i o Unit

Add a Game to the GameId.

#runGameWithM_ Source

runGameWithM_ :: forall s g i o childG childI childO. GameId s childI -> GameSpecM s childG childI childO -> GlappleM s g i o Unit

runGameWithM without outputHandler