OnUpdate method, we will do different things depending on the
gameMode field. If the mode is
gmPlay, we will update all objects and do collision checks. In other modes, we mostly check for certain keys that are hit on the keyboard to switch the game into a different mode.
Selectstatement with the
gameModefield as a parameter.
Method OnUpdate:Int() Local d:Float = Float(eng.CalcDeltaTime())/60.0 If isSuspended = False Then Select gameMode
Case gmPlay eng.Update(Float(d))
The call to the
Update method of the engine is now part of the