refactor grid, gamemanager, tile
This commit is contained in:
+9
-9
@@ -16,12 +16,12 @@ Tile.prototype.updatePosition = function (position) {
|
||||
this.y = position.y;
|
||||
};
|
||||
|
||||
Tile.prototype.tileState = function () {
|
||||
return {
|
||||
position: {
|
||||
x: this.x,
|
||||
y: this.y
|
||||
},
|
||||
value: this.value
|
||||
};
|
||||
}
|
||||
Tile.prototype.serialize = function () {
|
||||
return {
|
||||
position: {
|
||||
x: this.x,
|
||||
y: this.y
|
||||
},
|
||||
value: this.value
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user