Game

Class for easily creating a window

Members

Functions

draw
void draw()

Draw code goes here, window.display is not needed.

load
void load()

Load function thats meant for loading content.

onEvent
void onEvent(Event event)

Happens when some window event gets called.

run
void run()

Starts the window and calls all functions

start
void start()

Start function will get called before window is created. Variables can be changed here.

update
void update(float delta)

Will get called every frame before draw.

Properties

flags
WindowFlags flags [@property getter]

Window start flags, will not update afterwards

maxFPS
int maxFPS [@property getter]

Max FPS, will not update afterwards

postShader
ShaderProgram postShader [@property getter]

Optional post processing shader.

window
Window window [@property getter]

Handle to the window.

windowHeight
int windowHeight [@property getter]

Window start height, will not update afterwards

windowIcon
Bitmap windowIcon [@property getter]

Window icon, will not update afterwards

windowTitle
string windowTitle [@property getter]

Window title, will not update afterwards

windowWidth
int windowWidth [@property getter]

Window start width, will not update afterwards

Meta