19 drawSpriteSheet - JcerelusDev/CanvasGameJs GitHub Wiki

How to use the drawSpriteSheet method

it is simple just grab you player object

player.drawSpriteSheet()

Notice that how drawSpriteSheet holds 9 parameters

we multiply the player.col by the player.sw

we multiply the player.row by the player.sh

then we add player.sw

and player.sh

finally the last 4 parameters is to position the player where we want and to give the player the size we want