Skip to content

NewMapOptions beta ​

Interface of @v12-engine/engine

ts
export interface NewMapOptions

The options createMap makes a map with

Members ​

depth ​

ts
depth: number;

The map's depth in cells

game ​

ts
game?: string;

The game it is for, see GameMap.game

height ​

ts
height?: number;

Height of the land everywhere

name ​

ts
name?: string;

The map's name: New map when left out

players ​

ts
players?: number;

How many player slots the map has: 2 when left out

tileset ​

ts
tileset?: string[];

The tiles it can be painted with, by name: the game's (registry.tiles). None when left out

width ​

ts
width: number;

The map's width in cells