mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-27 11:18:04 +08:00
Fixed documentation
This commit is contained in:
@@ -70,8 +70,8 @@ GarageServerIO.initializeGarageServer('http://insertmygameurlhere.com', {
|
||||
return { x: (previousState.x + amount * (targetState.x - previousState.x)) };
|
||||
},
|
||||
onWorldState: function (state) {
|
||||
document.getElementById('gameCanvas').style.width = state.width;
|
||||
document.getElementById('gameCanvas').style.height = state.height;
|
||||
document.getElementById('gameCanvas').width = state.width;
|
||||
document.getElementById('gameCanvas').height = state.height;
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user