mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Removed set player state from client - should set from server
This commit is contained in:
@@ -13,7 +13,6 @@ $(function () {
|
||||
document.getElementById('gameCanvas').style.height = state.height + 'px';
|
||||
}
|
||||
});
|
||||
GarageServerIO.setState({ x: 0, y: 0 });
|
||||
|
||||
GameLoop.start(
|
||||
//Render Loop
|
||||
|
||||
@@ -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: '' });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user