Module

Graphics.Phaser.Container

Package
purescript-phaser
Repository
lfarroco/purescript-phaser

#create Source

create :: 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

#removeAll Source

removeAll :: Boolean -> PhaserContainer -> Effect PhaserContainer

Removes all children from a container - the argument controls if they are destroyed as well

#list Source

list :: forall a. GameObject a => PhaserContainer -> Effect (Array a)

Returns an array of the container's game objects.

#getByName Source