14 update - JcerelusDev/CanvasGameJs GitHub Wiki

How to use the update method

The update methode is used to bring animation to the stage. This is where you gonna have to update all of the game sprite etc...

You need to pass the following argument : delta stands for deltaTime

Example :

Considering we use the same game object from the beginning

game.update = function(delta){

// update everything here

}