Skip to content

GroundLooks beta ​

Interface of @v12-engine/client/common

ts
export interface GroundLooks

What the ground is drawn with: the colour of each tile and its texture, by the tile's index in the paint

Members ​

cliff ​

ts
cliff?: TileTexture;

The rock of cliff faces. The client's when left out

cliffLooks ​

ts
cliffLooks?: GroundCliffLooks;

Walls of cliffs shaped their own ways, each over cliffShape field by field: by the tile on their top, and by looks painted on the map. The walls are drawn shaped where any is, cliffShape or not

cliffRepeat ​

ts
cliffRepeat?: GroundRepeat;

How large the rock's picture is on a face, where its look says (TileLook.scale)

cliffShape ​

ts
cliffShape?: CliffShape;

The walls of cliffs drawn shaped (GameView.ground.cliffShape, CliffShape): finer than the grid, curved, rough and rounded at their corners. The grid's two triangles a cell when left out

cliffStyles ​

ts
cliffStyles?: Readonly<Record<string, CliffStyleDef>>;

The game's own styles of the walls of cliffs, by id (GameView.ground.cliffStyles), over the client's (CLIFF_STYLES)

colors ​

ts
colors: Rgb[];

The first, index 0, is no paint

ground ​

ts
ground?: TileTexture;

The ground where there is no paint: a file drawn as it is, or a pattern made in grey and laid over the colours of its slope and height. Grass laid over them when left out

groundRepeat ​

ts
groundRepeat?: GroundRepeat;

How deep the unpainted ground's edge blends by height, where its look says (TileLook.blendDepth)

lookWalls ​

ts
lookWalls?: {
        id: number;
        texture: TileTexture;
        repeat?: GroundRepeat;
    }[];

The pictures of the looks painted on walls (MapCliffLook.rock), by the look's id: the first 15, over the walls' own where they are painted

natural ​

ts
natural?: GroundColoring;

The colours of unpainted ground by height and slope (GameView.ground.colors): the client's grass and rock when left out

relief ​

ts
relief?: number;

How deep the pictures of the ground stand out as it is lit (GameView.ground.relief): each layer's normals, from its file's normal map (<texture>_n.png) or its height (heightNormals), tilt the ground's. 0 or left out: flat, and nothing more is sampled

repeats ​

ts
repeats?: GroundRepeat[];

How each tile's picture lies on the ground, by the same index as textures: as large and as turned as it says

textures ​

ts
textures: TileTexture[];

The first is the texture of tile 1

textureSize ​

ts
textureSize?: number;

The side of every texture of the ground, in pixels (GameView.ground.textureSize): TEXTURE_SIZE (256) when left out. A power of two from 64 to 2048 (another is taken to the nearest)

tint ​

ts
tint?: GroundTint;

A tint over many cells that breaks the pictures' repeats (GameView.ground.tint, GroundTint): none when left out

transitions ​

ts
transitions?: GroundTransition[];

Textures along the borders of two tiles, by their index in the paint (0 is no paint)

walls ​

ts
walls?: GroundWall[];

The walls of cliffs of their own, by the tile on the top (TileLook.cliff, MapCliff.tiles): the rock's elsewhere