Scene

individual scene containing objects

Members

Functions

AddObject
void AddObject(GameObject object)

adds a game object to the scene's object array

AddUI
void AddUI(UIElement element)

adds a UI element to the scene

CameraFollowObject
void CameraFollowObject(SimpleBox obj)

makes the camera follow an object

HandleEvent
void HandleEvent(Project parent, SDL_Event e)

run when an event is created

HandleUIEvent
bool HandleUIEvent(Project parent, SDL_Event e)

sends event to UI elements should not be called by the user

Init
void Init(Project parent)

called when this scene is set as the project's current scene

PostRender
void PostRender(Project parent, GameObject obj)

run after an object is rendered

Render
void Render(Project parent)

render the scene, should not be called by the user

Setup
void Setup()

sets up a scene should not be called by the user

StopFollowingObject
void StopFollowingObject()

stops the camera from following an object

Update
void Update(Project parent)

run every frame

UpdateCamera
void UpdateCamera(Project parent)

makes the camera follow an object if enabled should not be called by the user

UpdateObjects
void UpdateObjects(Project parent)

calls the update function of all objects in the scene should not be called by the user

Variables

animations
AnimationManager animations;
Undocumented in source.
bg
SDL_Color bg;
Undocumented in source.
camera
Vec2!int camera;
Undocumented in source.
cameraFollow
Vec2!int* cameraFollow;
Undocumented in source.
cameraFollowsObject
bool cameraFollowsObject;
Undocumented in source.
objects
GameObject[] objects;
Undocumented in source.
ui
UIElement[] ui;
Undocumented in source.

Meta