data: remove obsolete collision matrix
This commit is contained in:
parent
aee504be88
commit
5593bf2d36
2 changed files with 2 additions and 19 deletions
|
@ -1,12 +1,10 @@
|
|||
export interface Input {
|
||||
readonly tiles: string[];
|
||||
readonly collision: boolean[][];
|
||||
readonly layers: number[][][];
|
||||
}
|
||||
|
||||
export class MapData {
|
||||
public readonly tiles: string[];
|
||||
public readonly collision: boolean[][];
|
||||
public readonly layers: number[][][];
|
||||
|
||||
public readonly width: number;
|
||||
|
@ -14,10 +12,9 @@ export class MapData {
|
|||
|
||||
constructor(data: Input) {
|
||||
this.tiles = data.tiles;
|
||||
this.collision = data.collision;
|
||||
this.layers = data.layers;
|
||||
|
||||
this.height = this.collision.length;
|
||||
this.width = this.collision[0].length;
|
||||
this.height = this.layers[0].length;
|
||||
this.width = this.layers[0][0].length;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue