mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-05 17:30:44 +08:00
Progress #3
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user