8 lines
182 B
JavaScript
8 lines
182 B
JavaScript
function Tile(position, value) {
|
|
this.x = position.x;
|
|
this.y = position.y;
|
|
this.value = value || 2;
|
|
|
|
this.previousPosition = null;
|
|
}
|