added getSpawnedPlayersAndTheirPositions in order to get already spawned players to spawn the moment you join and spawn yourself. fixes #26

This commit is contained in:
Logsol 2013-01-05 22:38:29 +01:00
parent a852bccae6
commit a1e94e1ed0
6 changed files with 55 additions and 8 deletions

View file

@ -32,6 +32,10 @@ function (Doll, Settings) {
return this.doll.getBody();
}
Player.prototype.getPosition = function () {
return this.getBody().GetPosition();
}
Player.prototype.setStanding = function (isStanding) {
var resetStates = ['jump', 'jumploop'];
if (resetStates.indexOf(this.currentAnimationState)>=0 && !this.standing && isStanding) {