This commit is contained in:
Jeremiah Billmann
2013-07-04 15:13:34 -04:00
parent 24fb6e5358
commit 4ceb93fbf6
+3 -4
View File
@@ -81,9 +81,9 @@ window.GarageServerIO = (function (window, socketio) {
this.time = time;
}
function Entity(id) {
function Entity() {
this.updates = [];
this.id = id;
this.id;
this.currentState = {};
}
Entity.prototype = {
@@ -133,9 +133,8 @@ window.GarageServerIO = (function (window, socketio) {
};
function Player(id) {
this.updates = [];
Entity.call(this);
this.id = id;
this.currentState = {};
}
Player.prototype = Object.create(Entity.prototype);