Namespace: Phaser

Phaser

Classes

FacebookInstantGamesPlugin
Game
Scene

Namespaces

Actions
Animations
Cache
Cameras
Core
Create
Curves
Data
Device
Display
DOM
Events
GameObjects
Geom
Input
Loader
Math
Physics
Plugins
Renderer
Scale
Scenes
Sound
Structs
Textures
Tilemaps
Time
Tweens
Utils

Members


<static, readonly> AUTO :integer

AUTO Detect Renderer.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 29)

<static, readonly> BlendModes :integer

Phaser Blend Modes.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/BlendModes.js (Line 7)

<static, readonly> CANVAS :integer

Canvas Renderer.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 39)

<static, readonly> DOWN :integer

Direction constant.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 100)

<static, readonly> FOREVER :integer

In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead to help you remember what the value is doing in your code.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 69)

<static, readonly> HEADLESS :integer

Headless Renderer.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 59)

<static, readonly> LEFT :integer

Direction constant.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 110)

<static, readonly> NONE :integer

Direction constant.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 80)

<static, readonly> RIGHT :integer

Direction constant.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 120)

<static, readonly> ScaleModes :integer

Phaser Scale Modes.

Type:
  • integer
Since: 3.0.0
Source: src/renderer/ScaleModes.js (Line 7)

<static, readonly> UP :integer

Direction constant.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 90)

<static, readonly> VERSION :string

Phaser Release Version

Type:
  • string
Since: 3.0.0
Source: src/const.js (Line 15)

<static, readonly> WEBGL :integer

WebGL Renderer.

Type:
  • integer
Since: 3.0.0
Source: src/const.js (Line 49)

Type Definitions


DeviceConf

Type:
  • object
Properties:
Name Type Description
os Phaser.Device.OS

The OS Device functions.

browser Phaser.Device.Browser

The Browser Device functions.

features Phaser.Device.Features

The Features Device functions.

input Phaser.Device.Input

The Input Device functions.

audio Phaser.Device.Audio

The Audio Device functions.

video Phaser.Device.Video

The Video Device functions.

fullscreen Phaser.Device.Fullscreen

The Fullscreen Device functions.

canvasFeatures Phaser.Device.CanvasFeatures

The Canvas Device functions.

Source: src/device/index.js (Line 17)