Scene

Constructors

this
this()

Members

Functions

addEntity
void addEntity(Entity entity)
draw
void draw(RenderTarget renderTarget)

All draw operations performed here will be affected by the camera

drawStatic
void drawStatic(RenderTarget renderTarget)

All draw operations here will be affected by a static orthographic perspective

findClosestEntity
Entity findClosestEntity(Entity entity)

Finds the closest entity to this entity

findClosestEntity
Entity findClosestEntity(Entity entity, int tag)

Finds the closest entity with the matching tag

getEntities
Entity[] getEntities()
removeEntity
void removeEntity(Entity entity)
setup
void setup()

Called when attached to a scene for the first time

start
void start()

Called when attached to a scene

update
void update()

Call super.update() to update entities if overridden

updateAudio
void updateAudio()
Undocumented in source. Be warned that the author may not have intended to support it.
updateCollisions
void updateCollisions()

Called by Scene.update()

updateEntities
void updateEntities()

Called by Scene.update()

Properties

game
Game game [@property getter]
input
Input input [@property getter]

Variables

_game
Game _game;
Undocumented in source.
audioSources
LinkedList!(Audio) audioSources;
Undocumented in source.
camera
Camera camera;
collider2DMap
SpacialMap2D collider2DMap;
Undocumented in source.
isSetup
bool isSetup;
Undocumented in source.

Meta