Class: SystemGfx

SystemGfx

Graphic system.


new SystemGfx()

Source:

Members


backgroundColor

Background color getter

Source:

backgroundColor

Background color setter

Source:

mouse

Mouse position getter. Require the engine/gfx/interaction before
using.

Source:

Methods


awake()

Awake callback

Source:

createLayer(name, parent)

Create a layer

Parameters:
Name Type Description
name String

Name of this layer

parent String

Which layer to add this into

Source:
Returns:

Self for chaining

Type
SystemGfx

fixedUpdate(delta)

Fixed update callback

Parameters:
Name Type Description
delta Number

Delta time in ms

Source:

onEntityRemove(ent)

Entity remove callback

Parameters:
Name Type Description
ent Entity

Entity to be removed

Source:

onEntitySpawn(ent)

Entity spawn callback

Parameters:
Name Type Description
ent Entity

Entity to be spawned

Source:

update()

Update callback

Source: