fixes position state update and removes dev graphs for better fps

This commit is contained in:
Jeena 2015-08-02 16:06:32 +02:00
parent db95465208
commit a8adbcf140
6 changed files with 55 additions and 29 deletions

View file

@ -79,15 +79,14 @@ function (PhysicsEngine, TiledLevel, Player, Nc, Doll, GameObject, Item, Assert)
continue;
}
gameObject.setUpdateData(updateData[uid]);
this.updateGameObject(gameObject, updateData[uid]);
}
};
/*
GameController.prototype.onWorldUpdateGameObject = function(body, gameObject, update) {
FIXME : call gameObject.setUpdateData(updateData[uid]);
};
*/
GameController.prototype.updateGameObject = function(gameObject, gameObjectUpdate) {
gameObject.setUpdateData(gameObjectUpdate);
}
GameController.prototype.onResetLevel = function() {
this.loadLevel(this.level.uid);