Millisecsvalue and the global variable
deltaTime = Millisecs() - lastTime
lastTime += deltaTime
deltaTimeand close the method.
Return deltaTime End
This is a simple method which determines the time in milliseconds since its last call. The delta time can be used to factor speed values or other factors that are time dependent.
In each frame, we want to update the text objects that will display our most important game fields, such as
score, lifes, levelNumber ...