onRender method
Called repeatedly by the game loop to render the game scene.
Override this method to draw your game's visuals using the gfx object. This includes:
- Clearing the screen.
- Drawing sprites, shapes, text, and other graphical elements.
This method is called after onUpdate.
It is only called if loader.done
is true (if you don't have set isEnabled
property of loader to false).
gfx.flush()
is called automatically at the end of the frame after
onRender
.
Implementation
void onRender() {}