Module

Graphics.Phaser.Scene

Package
purescript-phaser
Repository
lfarroco/purescript-phaser

#Time Source

type Time = Number

#Delta Source

type Delta = Number

#SceneConfig Source

type SceneConfig a = { create :: PhaserScene -> a -> Effect Unit, init :: PhaserScene -> a -> Effect Unit, key :: String, preload :: PhaserScene -> Effect Unit, state :: a, update :: PhaserScene -> Effect Unit }

#defaultSceneConfig Source

defaultSceneConfig :: SceneConfig (Record ())

A scene where create, init, update and preload are noops.

#getSceneManagerImpl Source

#getRegistryImpl Source

#getRegistryDataImpl Source

#getRegistryData Source

#setRegistryDataImpl Source

#setRegistryData Source

setRegistryData :: forall st. PhaserRegistry -> String -> st -> Effect st

#getDataImpl Source

getDataImpl :: forall a. Fn2 String PhaserScene (Effect a)

Local data storage

#setDataImpl Source

#getData Source

getData :: forall a. String -> PhaserScene -> Effect a

#setData Source

setData :: forall a. String -> a -> PhaserScene -> Effect Unit

#launchImpl Source

launchImpl :: forall model. Fn2 PhaserScene model (Effect Unit)

#startImpl Source

startImpl :: forall model. Fn2 model PhaserScene (Effect Unit)

#restartImpl Source

restartImpl :: forall model. Fn2 PhaserScene model (Effect Unit)

#launch Source

launch :: forall a. PhaserScene -> a -> Effect Unit

Starts the given scene in parallel with the current one

#launchByKey Source

launchByKey :: forall a. String -> a -> PhaserScene -> Effect Unit

#startByKey Source

startByKey :: forall a. String -> a -> PhaserScene -> Effect Unit

#launchByKeyImpl Source

#startByKeyImpl Source

#getPluginInstanceImpl Source

#getPluginInstance Source

#start Source

start :: forall a. a -> PhaserScene -> Effect Unit

#restart Source

restart :: forall a. PhaserScene -> a -> Effect Unit