feat: add corners to MapTemplate
This commit is contained in:
parent
5bc079756d
commit
cf4e84320a
|
@ -13,9 +13,15 @@ export default class MapTemplate {
|
||||||
// Replace with the relative path to the dist/
|
// Replace with the relative path to the dist/
|
||||||
image: string;
|
image: string;
|
||||||
|
|
||||||
|
// The start room
|
||||||
entrance: RoomTemplate;
|
entrance: RoomTemplate;
|
||||||
|
// The final room
|
||||||
exit: RoomTemplate;
|
exit: RoomTemplate;
|
||||||
rooms: Array<RoomTemplate>;
|
rooms: Array<RoomTemplate>;
|
||||||
|
// Tiles that will be used to fill four layers
|
||||||
|
corners?: [Corner, Corner, Corner, Corner];
|
||||||
|
// Tile to fill all empty spaces between rooms
|
||||||
|
background: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Entrance {
|
export class Entrance {
|
||||||
|
@ -42,4 +48,12 @@ export class RoomTemplate {
|
||||||
topLayer: Array<number>;
|
topLayer: Array<number>;
|
||||||
entrances: Array<Entrance>;
|
entrances: Array<Entrance>;
|
||||||
enemies?: Array<Enemy>;
|
enemies?: Array<Enemy>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Corner {
|
||||||
|
height: number;
|
||||||
|
width: number;
|
||||||
|
bottomLayer: Array<number>;
|
||||||
|
topLayer: Array<number>;
|
||||||
|
filler: Array<number>;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user