Guest User

Untitled

a guest
Sep 14th, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. I.draw = function() {
  2. canvas.save();
  3. canvas.translate(this.x + this.width * 0.5, this.y + this.height * 0.5);
  4. canvas.scale(this.scale, this.scale);
  5. canvas.translate(-I.sprite.width * 0.5, -I.sprite.height * 0.5);
  6. this.sprite.draw(canvas, this.x, this.y);
  7. canvas.restore();
  8. };
Advertisement
Add Comment
Please, Sign In to add comment