Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix player direction

  • Loading branch information...
commit afc01d64b70de3794fcdbabf08494ffc2f5cb597 1 parent 45b6744
@edas edas authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 client/ninjaparty.js
View
5 client/ninjaparty.js
@@ -24,7 +24,7 @@ this.Keys = {
// Config actions
this.allowCheat = true;
-this.allowPlayerStop = true; // change to allow user to stop
+this.allowPlayerStop = false; // change to allow user to stop
this.persistKeys = false;
this.autoMove = false;
this.startWithAutoMove = false;
@@ -322,7 +322,8 @@ this.loadServerPlayers = function (players) {
c.state = data.state ;
c.updateAnimation();
}
- if (i != ninjaParty.playerId) ninjaParty.characters[i].changeDirection(data.direction) ;
+ // if (i != ninjaParty.playerId)
+ ninjaParty.characters[i].changeDirection(data.direction) ;
ninjaParty.characters[i].changeState(data.state) ;
data.events.forEach( function (event, j) {
if (event == Events.ATTACK) ninjaParty.characters[i].attack();
Please sign in to comment.
Something went wrong with that request. Please try again.