Module

Emo8.Util.Collide

Package
purescript-emo8
Repository
opyapeus/purescript-emo8

#isOutOfCanvas Source

isOutOfCanvas :: Rect -> Size -> X -> Y -> Boolean

#isCollideCanvas Source

#isCollideMap Source

isCollideMap :: EmojiMap -> Size -> Walls -> Size -> X -> Y -> Boolean

Check if the object collides the map with the specified accessor, map size, walls, object size, x and y.

The walls are emojis collidable in a certain map.

#isCollide Source

isCollide :: Size -> X -> Y -> Size -> X -> Y -> Boolean

Check if the two objects collide.