GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • WaspLib documentation

This view

  • Original page
  • New address

GeezerVison is showing docs.waspscripts.com — Map Definition

Map Definition¶

A region’s terrain: four planes of 64 by 64 tiles, each with a height, a ground overlay and underlay, and its settings flags.


MapDefinition.Create¶

function TMapDefinition.Create(regionX, regionY: Integer; const data: TByteArray): TMapDefinition; static;

Decodes a region’s terrain: four planes of 64 by 64 tiles, each with its height, its ground overlay and underlay, and its settings flags.

Tiles are written in plane, then x, then y order with no separators - each one is a run of attribute values that ends at 0, or at 1 followed by the tile’s height. Attributes from 2 to 49 carry the overlay along with the shape and rotation it is drawn at, 50 to 81 are the settings flags, and anything above that is the underlay.

A height of -1 means the tile had none stored and takes the procedural one instead - see TRegion.LoadTerrain.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.