Progress: Client Updates

This commit is contained in:
Jeremiah Billmann
2013-06-01 14:57:04 -04:00
parent a9f92adf60
commit d676f72e19
3 changed files with 6 additions and 10 deletions
+3 -5
View File
@@ -8,8 +8,6 @@ window.GarageServerIO = (function (window, socketio) {
players = [],
inputs = [],
updates = [],
// TODO: DONE CALLBACK
@@ -36,11 +34,11 @@ window.GarageServerIO = (function (window, socketio) {
addPlayerInput = function (input) {
sequenceNumber += 1;
inputs.push({ input: input, seq: sequenceNumber });
sendPlayerInput(input);
},
sendPlayerInput = function () {
sendPlayerInput = function (input) {
socket.emit('input', { input: input, seq: sequenceNumber });
},
removePlayer = function (id) {