Skip to content

Commit

Permalink
added last move direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabryz committed Feb 11, 2012
1 parent 46bd147 commit e86dc2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/js/Player.js
Expand Up @@ -8,7 +8,7 @@

this.isAlive = true;
this.HP = 100;
this.lastMove = Date.now();
this.lastMoveTime = Date.now();
this.ping = 0;

this.width = 10;
Expand All @@ -21,6 +21,7 @@
this.moveRight = false;
this.moveUp = false;
this.moveDown = false;
this.lastMoveDir = 'd';
};

Player.prototype.toString = function() {
Expand Down

0 comments on commit e86dc2e

Please sign in to comment.