mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Formatting
This commit is contained in:
@@ -19,15 +19,15 @@ $(function () {
|
||||
ctxCanvas.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
GarageServerIO.getStates(function (selfState, playerStates, entityStates) {
|
||||
playerStates.forEach(function (player) {
|
||||
ctxCanvas.fillRect(player.currentState.x, player.currentState.y, 15, 15);
|
||||
});
|
||||
playerStates.forEach(function (player) {
|
||||
ctxCanvas.fillRect(player.currentState.x, player.currentState.y, 15, 15);
|
||||
});
|
||||
|
||||
entityStates.forEach(function (entity) {
|
||||
ctxCanvas.fillRect(entity.currentState.x, entity.currentState.y, 15, 15);
|
||||
});
|
||||
entityStates.forEach(function (entity) {
|
||||
ctxCanvas.fillRect(entity.currentState.x, entity.currentState.y, 15, 15);
|
||||
});
|
||||
|
||||
ctxCanvas.fillRect(selfState.x, selfState.y, 15, 15);
|
||||
ctxCanvas.fillRect(selfState.x, selfState.y, 15, 15);
|
||||
});
|
||||
},
|
||||
//Update Loop
|
||||
|
||||
Reference in New Issue
Block a user