Game's events

Open Game Engine 2D, Version 1.0.1

In current version, the game object has 3 events.

OnInit

This is the first event in a game.
Normally we can init the global vars in this event.


OnFinalize

This is the last event in a game.
Normally we can do some cleaning in this event.


OnUpdate

This event will happen in the end of every turn of the game cycle.