17 DrawSpriteImg - JcerelusDev/CanvasGameJs GitHub Wiki
How to use the drawSpriteImg method
To use drawSpriteImg, there is something you need to change in your sprite object.
here it is :
var player = new Sprite(30,40,32,32,10,10,"player")
player.image.src ="player.png"
Notice that we don't use color for the sprite, instead
we use image because we wish to draw image, but we still call the method sprite the same way
Example :
player.drawSpriteImg()