Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I.draw = function() {
- canvas.save();
- canvas.translate(this.x + this.width * 0.5, this.y + this.height * 0.5);
- canvas.scale(this.scale, this.scale);
- canvas.translate(-I.sprite.width * 0.5, -I.sprite.height * 0.5);
- this.sprite.draw(canvas, this.x, this.y);
- canvas.restore();
- };
Advertisement
Add Comment
Please, Sign In to add comment