Skip to content

Commit

Permalink
DONE minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
briwa committed Feb 22, 2015
1 parent 78be754 commit c849d09
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/helper/phaser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ CVS = {};
this.game = game;
this.data = data;

this.sprite = game.add.sprite(getTilePos(this.data.pos.x*TILESIZE), getTilePos(this.data.pos.y*TILESIZE), 'player', 26);
this.sprite = game.add.sprite(this.data.pos.x*TILESIZE, this.data.pos.y*TILESIZE, 'player', 26);
this.user_id = user._id;

this.sprite.anchor.setTo(0.25, 0.5);
Expand Down Expand Up @@ -272,15 +272,11 @@ CVS = {};

var self = this;
tween.onComplete.add(function() {

self.moveTo(newPos);

}, game);

tween.start();

} else {

this.moveTo(newPos);
}

Expand Down

0 comments on commit c849d09

Please sign in to comment.