mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-29 16:30:43 +08:00
Changed client side update calllback
This commit is contained in:
@@ -8,7 +8,7 @@ $(function () {
|
||||
GarageServerIO.initializeGarageServer('http://garageserver_io.jbillmann.c9.io', {
|
||||
logging: true,
|
||||
onReady: startGame,
|
||||
onUpdatePlayerPhysics: GamePhysics.getNewPlayerState,
|
||||
onUpdatePlayerPrediction: GamePhysics.getNewPlayerState,
|
||||
onInterpolation: GamePhysics.getInterpolatedState,
|
||||
onWorldState: function (state) {
|
||||
document.getElementById('gameCanvas').style.width = state.width + 'px';
|
||||
|
||||
Reference in New Issue
Block a user