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

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

camera
Camera camera;

Meta