Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player.prototype.update = function() {
- if( keyboard.up() ) {
- this.y -= 1;
- }
- };
- Player.prototype.draw = function() {
- context.drawImage(this.image, this.x * 16, this.y * 16);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement