Progress: Documentation

This commit is contained in:
Jeremiah Billmann
2013-07-26 15:22:39 -04:00
parent a28df74a07
commit 8fa0d0b68e
+2 -2
View File
@@ -81,11 +81,11 @@ GarageServerIO.addInput(myInput);
```js
GarageServerIO.getStates(function (playerStates, entityStates) {
playerStates.forEach(function (player) {
ctxCanvas.fillRect(player.state.x, player.state.y, 5, 5);
ctxCanvas.fillRect(player.state.x, 0, 5, 5);
});
entityStates.forEach(function (entity) {
ctxCanvas.fillRect(entity.state.x, entity.state.y, 5, 5);
ctxCanvas.fillRect(entity.state.x, 0, 5, 5);
});
});
```