SHARE
TWEET

Untitled

a guest May 30th, 2012 431 Never
  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. };
RAW Paste Data
Top