Module
Graphics.Phaser.CoreTypes
- Package
- purescript-phaser
- Repository
- lfarroco/purescript-phaser
#PhaserNamespace Source
data PhaserNamespace
#Dimensions Source
type Dimensions = { height :: Number, width :: Number }
#BannerConfig Source
type BannerConfig = { background :: Array String, hidePhaser :: Boolean, text :: String }
#DOMContainerConfig Source
type DOMContainerConfig = { behindCanvas :: Boolean, createContainer :: Boolean, pointerEvents :: String }
#RenderConfig Source
type RenderConfig = { antialias :: Boolean, antialiasGL :: Boolean, batchSize :: Int, clearBeforeRender :: Boolean, desynchronized :: Boolean, failIfMajorPerformanceCaveat :: Boolean, maxLights :: Int, maxTextures :: Int, mipmapFilter :: String, pixelArt :: Boolean, powerPreference :: String, premultipliedAlpha :: Boolean, preserveDrawingBuffer :: Boolean, roundPixels :: Boolean, transparent :: Boolean }
#CallbacksConfig Source
type CallbacksConfig = { postBoot :: BootCallback, preBoot :: BootCallback }
#ImagesConfig Source
type ImagesConfig = { default :: String, missing :: String, white :: String }
These are paths to base64 textures
#PhysicsConfig Source
type PhysicsConfig = { arcade :: ArcadeWorldConfig, default :: String }
Arcade / Matter Configs aren't fully implemented yet
#PluginObject Source
type PluginObject = { default :: Array String, defaultMerge :: Array String, global :: Array PluginObjectItem, scene :: Array PluginObjectItem }
#AudioConfig Source
type AudioConfig = { context :: AudioContext, disableWebAudio :: Boolean, noAudio :: Boolean }
#ArcadeWorldConfig Source
type ArcadeWorldConfig = { debug :: Boolean, gravity :: { x :: Number, y :: Number } }
#SettingsConfig Source
type SettingsConfig = { active :: Boolean, cameras :: Array JSONCamera, key :: String, pack :: PackFileSection, visible :: Boolean }
#GameObject Source
class GameObject :: forall k. k -> Constraint
class (EventEmitter a, Transform a, Tint a) <= GameObject a
Instances
#Transform Source
class Transform :: forall k. k -> Constraint
class Transform a
Instances
#Tint Source
class Tint :: forall k. k -> Constraint
class Tint a
Instances
#EventEmitter Source
class EventEmitter :: forall k. k -> Constraint
class EventEmitter a
Instances
EventEmitter PhaserGameObject
EventEmitter NodeEventEmitter
EventEmitter PhaserImage
EventEmitter PhaserContainer
EventEmitter PhaserGraphic
EventEmitter PhaserSprite
EventEmitter PhaserText
EventEmitter ArcadeImage
EventEmitter ArcadeSprite
EventEmitter KeyboardPlugin
EventEmitter Key
EventEmitter PhaserLayer
EventEmitter PhaserInputPlugin
EventEmitter PhaserLoaderPlugin
EventEmitter PhaserLine
EventEmitter PhaserLight
#PhysicsEnabled Source
class PhysicsEnabled :: forall k. k -> Constraint
class PhysicsEnabled a
Instances
#HasNodeEventEmitter Source
class HasNodeEventEmitter :: forall k. k -> Constraint
class HasNodeEventEmitter a
This is somewhat confusing.
Some phaser objects inherit direct from Event Emitter
Because of that you can do img.on
or img.emit
These objects are classified under EventEmitter
.
But other objects have a property .events
that is
an instance of event emitter (scene.events.on
, game.events.emit
, etc.)
This typeclass identifies objects that have the .events
property.
Instances
HasNodeEventEmitter PhaserScene
HasNodeEventEmitter PhaserGame
HasNodeEventEmitter PhaserDisplayList
HasNodeEventEmitter PhaserGameObjectCreator
HasNodeEventEmitter PhaserGameObjectFactory
HasNodeEventEmitter PhaserLayer
HasNodeEventEmitter PhaserGamePad
HasNodeEventEmitter PhaserGamePadButton
HasNodeEventEmitter PhaserSystems
HasNodeEventEmitter PhaserCache
#HasScenePlugin Source
class HasScenePlugin :: forall k. k -> Constraint
class HasScenePlugin a
Instances
#ArcadeGroup Source
class ArcadeGroup :: forall k. k -> Constraint
class ArcadeGroup a
Instances
#Collidable Source
class Collidable :: forall k. k -> Constraint
class Collidable a
Instances
- 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