Module

Emo8.GameDev

Package
purescript-emo8
Repository
opyapeus/purescript-emo8

#GameDev Source

class (Game s, Encode s, Decode s) <= GameDev s  where

Emo8 game develepment mode class.

You can save the state to localstrage and visualize it by defining Encode and Decode instance of the state type.

Members

#loadStateWithDefault Source

loadStateWithDefault :: forall s. GameDev s => s -> LocalKey -> Effect s

#saveState Source

saveState :: forall s. GameDev s => s -> Effect Unit