Skip to content

MapTransition beta ​

Interface of @v12-engine/client

ts
export interface MapTransition

A texture drawn along the border where two tiles meet: grass next to sand gets a sandy edge of grass, not a blur of one into the other. Only where a map or a game says so: other borders blend

Members ​

adjust ​

ts
adjust?: MapTile['adjust'];

Its picture changed as it is drawn, and made to repeat without a seam, as a ground's (MapTile.adjust, seamless)

between ​

ts
between: [string, string];

The two tiles, by id, either way round. '' is the ground where nothing is painted, '~water' is water

color ​

ts
color?: Rgb;

The colour a pattern is made in. Between the two tiles' when left out

pattern ​

ts
pattern?: string;

What it is made of in code, where there is no picture: a pattern of the client's (GroundPattern) or of the game's own by id. Dirt when left out

scale ​

ts
scale?: number;

How many cells its picture covers across, and its turn in degrees, as a ground's (MapTile.scale, turn)

seamless ​

ts
seamless?: MapTile['seamless'];

Whether the picture is made to repeat without a seam, as a ground's seamless

texture ​

ts
texture?: string;

A picture of it, by its path in textures/ (see Assets): drawn as it is, and where it is see-through, not at all

turn ​

ts
turn?: number;

Its picture turned, in degrees

width ​

ts
width?: number;

How far from the border it reaches into the cells either side, 0..1 of the way to their middles. 0.6 when left out