Module

Graphics.Phaser.ArcadePhysics

Package
purescript-phaser
Repository
lfarroco/purescript-phaser

#createChild Source

#addChild Source

addChild :: forall a g. GameObject a => ArcadeGroup g => a -> g -> Effect g

#refreshBody Source

refreshBody :: forall a. PhysicsEnabled a => a -> Effect a

#setImmovable Source

setImmovable :: forall a. PhysicsEnabled a => Boolean -> a -> Effect a

#allowGravity Source

allowGravity :: forall a. PhysicsEnabled a => a -> Effect Boolean

#setAllowGravity Source

setAllowGravity :: forall a. PhysicsEnabled a => Boolean -> a -> Effect a

#acceleration Source

acceleration :: forall a. PhysicsEnabled a => a -> Effect Vector

#facing Source

facing :: forall a. PhysicsEnabled a => a -> Effect Int

#velocity Source

velocity :: forall a. PhysicsEnabled a => a -> Effect Vector

#setVelocityX Source

setVelocityX :: forall a. PhysicsEnabled a => Number -> a -> Effect a

#setVelocityY Source

setVelocityY :: forall a. PhysicsEnabled a => Number -> a -> Effect a

#setVelocity Source

setVelocity :: forall a. PhysicsEnabled a => Vector -> a -> Effect a

#setBounce Source

setBounce :: forall a. PhysicsEnabled a => Number -> a -> Effect a

#setCollideWorldBounds Source

#addCollider Source

#addColliderWithCallback Source

#ArcadeBodyCollision Source

type ArcadeBodyCollision = { down :: Boolean, left :: Boolean, none :: Boolean, right :: Boolean, up :: Boolean }

#getTouching Source

#addOverlap Source

addOverlap :: forall a b c d. Collidable a => Collidable b => Collidable c => Collidable d => a -> b -> (c -> d -> Effect Unit) -> PhaserPhysicsPlugin -> Effect PhaserPhysicsPlugin

#disableBody Source

disableBody :: forall a. PhysicsEnabled a => a -> Effect a

#accelerateToObject Source

#collideWithCallback Source

#moveToObject Source

#overlapWithCallback Source