
Untitled
By: a guest on
May 30th, 2012 | syntax:
JavaScript | size: 0.20 KB | hits: 267 | expires: Never
Player.prototype.update = function() {
if( keyboard.up() ) {
this.y -= 1;
}
};
Player.prototype.draw = function() {
context.drawImage(this.image, this.x * 16, this.y * 16);
};