Module

Graphics.Phaser.GameObject

Package
purescript-phaser
Repository
lfarroco/purescript-phaser

#getScene Source

getScene :: forall a. GameObject a => a -> Effect PhaserScene

#destroy Source

destroy :: forall a. GameObject a => a -> Effect Unit

#getX Source

getX :: forall a. Transform a => a -> Effect Number

#getY Source

getY :: forall a. Transform a => a -> Effect Number

#getPosition Source

getPosition :: forall a. Transform a => a -> Effect Vector

#setPosition Source

setPosition :: forall a. Transform a => Vector -> a -> Effect a

#setX Source

setX :: forall a. Transform a => Number -> a -> Effect a

#setY Source

setY :: forall a. Transform a => Number -> a -> Effect a

#getAngle Source

getAngle :: forall a. Transform a => a -> Effect Number

#setAngle Source

setAngle :: forall a. Transform a => Number -> a -> Effect a

#getRadians Source

getRadians :: forall a. Transform a => a -> Effect Number

#setRadians Source

setRadians :: forall a. Transform a => Number -> a -> Effect a

#getRotation Source

getRotation :: forall a. Transform a => a -> Effect Number

#setRotation Source

setRotation :: forall a. Transform a => Number -> a -> Effect a

#getTint Source

getTint :: forall a. Tint a => a -> Effect { tintBottomLeft :: Number, tintBottomRight :: Number, tintTopLeft :: Number, tintTopRight :: Number }

#clearTint Source

clearTint :: forall a. Tint a => a -> Effect a

#isTinted Source

isTinted :: forall a. Tint a => a -> Effect Boolean

#getVisible Source

getVisible :: forall a. GameObject a => a -> Effect Boolean

#setVisible Source

setVisible :: forall a. GameObject a => Boolean -> a -> Effect a

#getAlpha Source

getAlpha :: forall a. GameObject a => a -> Effect Number

#setAlpha Source

setAlpha :: forall a. GameObject a => Number -> a -> Effect a

#getOrigin Source

getOrigin :: forall a. GameObject a => a -> Effect Number

#setOrigin Source

setOrigin :: forall a. GameObject a => Vector -> a -> Effect a

#setTint Source

setTint :: forall a. Tint a => String -> a -> Effect a

#getSize Source

getSize :: forall a. GameObject a => a -> Effect Dimensions

#setSize Source

setSize :: forall a. GameObject a => Dimensions -> a -> Effect a

#getWidth Source

getWidth :: forall a. GameObject a => a -> Effect Number

#getHeight Source

getHeight :: forall a. GameObject a => a -> Effect Number

#getDisplaySize Source

#setDisplaySize Source

setDisplaySize :: forall a. GameObject a => Dimensions -> a -> Effect a

#setInteractive Source

setInteractive :: forall a. GameObject a => a -> Effect a

#getScale Source

getScale :: forall a. Transform a => a -> Effect Vector

#setScale Source

setScale :: forall a. Transform a => Vector -> a -> Effect a

#setName Source

setName :: forall a. GameObject a => String -> a -> Effect a

#getName Source

getName :: forall a. GameObject a => a -> Effect String

#getData Source

getData :: forall obj a. GameObject obj => String -> obj -> Effect (Maybe a)

#setData Source

setData :: forall obj a. GameObject obj => String -> a -> obj -> Effect obj