This commit is contained in:
Jeremiah Billmann
2013-07-14 11:31:58 -04:00
parent 0f7e2ddcee
commit f9409434bf
3 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ $(function () {
onUpdatePlayerPhysics: GamePhysics.getNewPlayerState,
onInterpolation: GamePhysics.getInterpolatedState,
onWorldState: function (state) {
document.getElementById('gameCanvas').style.width = state.width;
document.getElementById('gameCanvas').style.height = state.height;
document.getElementById('gameCanvas').style.width = state.width + 'px';
document.getElementById('gameCanvas').style.height = state.height + 'px';
}
});
GarageServerIO.setState({ x: 0, y: 0 });