TileLook beta
Interface of @v12-engine/client
export interface TileLookWhat a tile of a game looks like (see GameView.ground.tiles)
Members
adjust
adjust?: GroundAdjust;How its picture is changed as it is drawn: tinted, brighter, of more contrast, more colourful (GroundAdjust)
blendDepth
blendDepth?: number;How deep its edge with another tile blends by the pictures' heights, 0..1: small, a crisp, ragged edge, the higher picture over the lower (grass tufts over dirt); 1, a soft fade. BLEND_DEPTH (0.2) when left out
cliff
cliff?: TileLook;The walls of cliffs whose top is painted with it, where they are not the ground's rock (GameView.ground.cliff): a picture or a pattern in a colour, as large, adjusted and seamless as it says (texture, pattern, color, scale, adjust, seamless). Snow over ice-grey rock, sand over sandstone. A map's go over it (MapCliff.tiles)
cliffShape
cliffShape?: CliffShape | false;How the walls of cliffs whose top is painted with it are shaped (CliffShape), over the game's (GameView.ground.cliffShape), field by field: columns under basalt, strata under sand; false smooth there. A map's go over it (MapCliff.tiles), and what a map paints over both (MapCliff.looks)
color
color: Rgb;Its colour: what the minimap draws it with, and its texture is on average
height
height?: string;A picture of how high its texture stands at each point, by its path in textures/ as texture is: light is high (over its neighbour's), dark low. How light the texture itself is when left out; a pattern's own height (PatternDef.height) for one made in code
layers
layers?: MapGroundLayer[];Layers laid over its picture, in order: a pattern (the client's, or the game's own by id) or a picture, blended, as much as it says, where its mask says (MapGroundLayer). Its adjust goes over them all
mix
mix?: GroundMix & {
first: string;
second: string;
};Mixed of two other tiles, by id (the game's or a map's own), in patches of a noise (GroundMix): rocky grass, mud with puddles. Made of their pictures as they draw (their seams, adjustments), lying as this one does
pattern
pattern?: GroundPattern | (string & {}) | PatternDef | PatternMaker;What its texture made in code is a texture of: one of the client's patterns by name, one of the game's own by id (GameView.ground.patterns) or as it is (PatternDef), or pixels as the game makes them (PatternMaker). Plain noise when left out
recipe
recipe?: GroundRecipe;What its texture made in code is made of, besides pattern and color (GroundRecipe): a second colour, specks...
scale
scale?: number;How many cells its picture covers across, before it repeats: 4 when left out (GROUND_REPEAT)
seamless
seamless?: Seamless;Its picture made to repeat without a seam, where its edges do not meet (Seamless)
texture
texture?: string;A picture of it that repeats over the ground, by its path in the textures/ folder of the game's files (see Assets), or of the shared ones. Made in code, of pattern and color, when left out
turn
turn?: number;How its picture is turned on the ground, in degrees: not at all when left out