Module

Graphics.Phaser.Container

Package
purescript-phaser
Repository
lfarroco/purescript-phaser

#create Source

create :: { x :: Number, y :: Number } -> PhaserScene -> Effect PhaserContainer

Creates a new container that belongs to the given scene

#addChild Source

addChild :: forall a. GameObject a => a -> PhaserContainer -> Effect PhaserContainer

Inserts a game object as a child of the given container

#removeChildren Source

removeChildren :: PhaserContainer -> Effect PhaserContainer

Removes all children from a container

#list Source

list :: forall a. GameObject a => PhaserContainer -> Array a