Removed set player state from client - should set from server

This commit is contained in:
Jeremiah Billmann
2013-07-14 12:02:24 -04:00
parent 4911079981
commit 5a778589ea
7 changed files with 3 additions and 46 deletions
-1
View File
@@ -13,7 +13,6 @@ $(function () {
document.getElementById('gameCanvas').style.height = state.height + 'px';
}
});
GarageServerIO.setState({ x: 0, y: 0 });
GameLoop.start(
//Render Loop
+1 -1
View File
@@ -18,7 +18,7 @@
state.y -= (50 * deltaTime);
} else if (inputs[i].input === 'space') {
if (garageServer) {
//garageServer.addEntity(new guid());
garageServer.addEntity(new guid(), { x: state.x, y: state.y, direction: '' });
}
}
}