Advertisement
Guest User

Untitled

a guest
May 30th, 2012
679
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Player.prototype.update = function() {
  2.     if( keyboard.up() ) {
  3.          this.y -= 1;
  4.     }
  5. };
  6. Player.prototype.draw = function() {
  7.     context.drawImage(this.image, this.x * 16, this.y * 16);
  8. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement