Module

Nemo.Update.Interpreter

Package
purescript-nemo
Repository
opyapeus/purescript-nemo

#runUpdate Source

runUpdate :: forall s. Game s => Asset -> Update s -> Effect s

#isMapCollide Source

isMapCollide :: Asset -> MapId -> Size -> Array Emoji -> Size -> X -> Y -> Effect Boolean

Map collision detection. Given emojis are treated as walls.

#getMapEmoji Source

getMapEmoji :: Asset -> MapId -> IdX -> IdY -> Effect (Maybe Emoji)

Get map emoji with given indices. Return Nothing there is not emoji.