Module
Graphics.Phaser.Scene
- Package
- purescript-phaser
- Repository
- lfarroco/purescript-phaser
#newScene Source
newScene :: String -> Effect PhaserScene
The lifecycle functions (init, update, create, etc.) require returning PhaserGame to allow composing multiple functions that operate at that time. eg. oncreate = drawBackground >=> drawRetangle
#init Source
init :: (PhaserScene -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#initWithData Source
initWithData :: forall a. (PhaserScene -> a -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#update Source
update :: (PhaserScene -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#updateWithTimes Source
updateWithTimes :: ({ delta :: Number, scene :: PhaserScene, time :: Number } -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#create Source
create :: (PhaserScene -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#createWithData Source
createWithData :: forall a. (PhaserScene -> a -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#preload Source
preload :: (PhaserScene -> Effect Unit) -> PhaserScene -> Effect PhaserScene
#children Source
children :: forall a. GameObject a => PhaserScene -> Effect (Array a)
#getChildByName Source
getChildByName :: forall a. GameObject a => String -> PhaserScene -> Effect (Maybe a)
#setData Source
setData :: forall k v. k -> v -> PhaserScene -> Effect PhaserScene
#getPluginInstance Source
getPluginInstance :: forall a. String -> PhaserScene -> Effect a
#getGame Source
getGame :: PhaserScene -> Effect PhaserGame
#getScenePlugin Source
getScenePlugin :: forall a. HasScenePlugin a => a -> Effect PhaserScenePlugin
#add Source
add :: forall sceneData. String -> PhaserScene -> Boolean -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#isSleeping Source
isSleeping :: String -> PhaserScenePlugin -> Effect Boolean
#launch Source
launch :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#moveUp Source
moveUp :: String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#pause Source
pause :: String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#remove Source
remove :: String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#resume Source
resume :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#run Source
run :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#setActive Source
setActive :: Boolean -> String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#setVisible Source
setVisible :: Boolean -> String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#sleep Source
sleep :: String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#start Source
start :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#stop Source
stop :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
#switch Source
switch :: String -> PhaserScenePlugin -> Effect PhaserScenePlugin
#wake Source
wake :: forall sceneData. String -> sceneData -> PhaserScenePlugin -> Effect PhaserScenePlugin
- Modules
- Graphics.
Phaser - Graphics.
Phaser. ArcadePhysics - Graphics.
Phaser. Camera - Graphics.
Phaser. Container - Graphics.
Phaser. CoreTypes - Graphics.
Phaser. Curves - Graphics.
Phaser. Display. RGB - Graphics.
Phaser. Events - Graphics.
Phaser. ForeignTypes - Graphics.
Phaser. GameConfig - Graphics.
Phaser. GameObject - Graphics.
Phaser. GameObjects. LightsManager - Graphics.
Phaser. Graphics - Graphics.
Phaser. Image - Graphics.
Phaser. Input. InputPlugin - Graphics.
Phaser. Input. Pointer - Graphics.
Phaser. Loader - Graphics.
Phaser. Scene - Graphics.
Phaser. SceneManager - Graphics.
Phaser. Sprite - Graphics.
Phaser. Text - Graphics.
Phaser. TileMap - Graphics.
Phaser. Time - Graphics.
Phaser. Tween - Graphics.
Tweens. TweenManager - Internal.
Utils - Phaser.
Graphics. Input. KeyCodes - Utils.
FFI