Skip to content

Latest commit

 

History

History
677 lines (364 loc) · 12.4 KB

Scenes_CYBR_Scene.CYBR_Scene.md

File metadata and controls

677 lines (364 loc) · 12.4 KB

cyber2d / Modules / Scenes/CYBR_Scene / CYBR_Scene

Class: CYBR_Scene

Scenes/CYBR_Scene.CYBR_Scene

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CYBR_Scene(config)

Parameters

Name Type
config string | SettingsConfig

Overrides

Phaser.Scene.constructor

Defined in

src/Scenes/CYBR_Scene.ts:16

Properties

add

add: GameObjectFactory

The Scene Game Object Factory.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.add

Defined in

node_modules/phaser/types/phaser.d.ts:86271


anims

anims: AnimationManager

A reference to the global Animation Manager.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.anims

Defined in

node_modules/phaser/types/phaser.d.ts:86222


cache

cache: CacheManager

A reference to the global Cache.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.cache

Defined in

node_modules/phaser/types/phaser.d.ts:86229


cameras

cameras: CameraManager

The Scene Camera Manager.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.cameras

Defined in

node_modules/phaser/types/phaser.d.ts:86264


children

children: DisplayList

The Game Object Display List belonging to this Scene.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.children

Defined in

node_modules/phaser/types/phaser.d.ts:86292


data

data: DataManager

A Scene specific Data Manager Plugin.

See the registry property for the global Data Manager.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.data

Defined in

node_modules/phaser/types/phaser.d.ts:86308


events

events: EventEmitter

A Scene specific Event Emitter.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.events

Defined in

node_modules/phaser/types/phaser.d.ts:86257


facebook

facebook: FacebookInstantGamesPlugin

The Facebook Instant Games Plugin.

This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured.

Inherited from

Phaser.Scene.facebook

Defined in

node_modules/phaser/types/phaser.d.ts:86357


game

game: Game

A reference to the Phaser.Game instance.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.game

Defined in

node_modules/phaser/types/phaser.d.ts:86215


input

input: InputPlugin

The Scene Input Manager Plugin.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.input

Defined in

node_modules/phaser/types/phaser.d.ts:86315


lights

lights: LightsManager

The Scene Lights Manager Plugin.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.lights

Defined in

node_modules/phaser/types/phaser.d.ts:86299


load

load: LoaderPlugin

The Scene Loader Plugin.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.load

Defined in

node_modules/phaser/types/phaser.d.ts:86322


make

make: GameObjectCreator

The Scene Game Object Creator.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.make

Defined in

node_modules/phaser/types/phaser.d.ts:86278


matter

matter: MatterPhysics

The Scene Matter Physics Plugin.

This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured.

Inherited from

Phaser.Scene.matter

Defined in

node_modules/phaser/types/phaser.d.ts:86350


physics

physics: ArcadePhysics

The Scene Arcade Physics Plugin.

This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured.

Inherited from

Phaser.Scene.physics

Defined in

node_modules/phaser/types/phaser.d.ts:86343


plugins

plugins: PluginManager

A reference to the global Plugin Manager.

The Plugin Manager is a global system that allows plugins to register themselves with it, and can then install those plugins into Scenes as required.

Inherited from

Phaser.Scene.plugins

Defined in

node_modules/phaser/types/phaser.d.ts:86372


registry

registry: DataManager

A reference to the global Data Manager.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.registry

Defined in

node_modules/phaser/types/phaser.d.ts:86236


renderer

renderer: CanvasRenderer | WebGLRenderer

A reference to the renderer instance Phaser is using, either Canvas Renderer or WebGL Renderer.

Inherited from

Phaser.Scene.renderer

Defined in

node_modules/phaser/types/phaser.d.ts:86377


scale

scale: ScaleManager

A reference to the global Scale Manager.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.scale

Defined in

node_modules/phaser/types/phaser.d.ts:86364


scene

scene: ScenePlugin

A reference to the Scene Manager Plugin.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.scene

Defined in

node_modules/phaser/types/phaser.d.ts:86285


sound

sound: NoAudioSoundManager | HTML5AudioSoundManager | WebAudioSoundManager

A reference to the Sound Manager.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.sound

Defined in

node_modules/phaser/types/phaser.d.ts:86243


sys

sys: Systems

The Scene Systems. You must never overwrite this property, or all hell will break lose.

Inherited from

Phaser.Scene.sys

Defined in

node_modules/phaser/types/phaser.d.ts:86208


textures

textures: TextureManager

A reference to the Texture Manager.

This property will only be available if defined in the Scene Injection Map.

Inherited from

Phaser.Scene.textures

Defined in

node_modules/phaser/types/phaser.d.ts:86250


time

time: Clock

The Scene Time and Clock Plugin.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.time

Defined in

node_modules/phaser/types/phaser.d.ts:86329


tweens

tweens: TweenManager

The Scene Tween Manager Plugin.

This property will only be available if defined in the Scene Injection Map and the plugin is installed.

Inherited from

Phaser.Scene.tweens

Defined in

node_modules/phaser/types/phaser.d.ts:86336


_idCount

Static Private _idCount: number = 0

Defined in

src/Scenes/CYBR_Scene.ts:14

Methods

centerHItem

centerHItem(item, offsetX?): CenterableObject

Parameters

Name Type Default value
item CenterableObject undefined
offsetX number 0

Returns

CenterableObject

Defined in

src/Scenes/CYBR_Scene.ts:46


centerItem

centerItem(item, offsetX?, offsetY?): CenterableObject

Parameters

Name Type Default value
item CenterableObject undefined
offsetX number 0
offsetY number 0

Returns

CenterableObject

Defined in

src/Scenes/CYBR_Scene.ts:27


centerVItem

centerVItem(item, offsetY?): CenterableObject

Parameters

Name Type Default value
item CenterableObject undefined
offsetY number 0

Returns

CenterableObject

Defined in

src/Scenes/CYBR_Scene.ts:38


update

update(time, delta): void

This method should be overridden by your own Scenes.

This method is called once per game step while the scene is running.

Parameters

Name Type Description
time number The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.
delta number The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.

Returns

void

Inherited from

Phaser.Scene.update

Defined in

node_modules/phaser/types/phaser.d.ts:86386


formatTime

Static formatTime(milliseconds): string

Parameters

Name Type
milliseconds number

Returns

string

Defined in

src/Scenes/CYBR_Scene.ts:54


generateUniqueName

Static generateUniqueName(gameObject): string

Parameters

Name Type
gameObject GameObject

Returns

string

Defined in

src/Scenes/CYBR_Scene.ts:21