Module

Emo8.Action.Update

Package
purescript-emo8
Repository
opyapeus/purescript-emo8

#Update Source

#randomInt Source

randomInt :: Int -> Int -> Update Int

Get random int.

#randomElement Source

randomElement :: forall a. Array a -> Update (Maybe a)

Get random element.

#randomNumber Source

randomNumber :: Number -> Number -> Update Number

Get random number.

#isMapCollide Source

isMapCollide :: MapId -> Size -> Array Emoji -> Size -> X -> Y -> Update Boolean

Detect map collision. Given emojis are treated as walls.