tmCreate

Makes an empty map. Add layers to it with tmAddLayer. Takes widthInTiles (The width of the map, in tiles), heightInTiles (The height of the map, in tiles), tileW (The width of a tile, in pixels), tileH (The height of a tile, in pixels). Returns: The map's handle, or 0 if a size isn't valid.

Tilemap

Parameters & Returns

Parameters

widthInTiles Int
heightInTiles Int
tileW Int
tileH Int

Returns

Int

Quick Summary

Makes an empty map. Add layers to it with tmAddLayer. Takes widthInTiles (The width of the map, in tiles), heightInTiles (The height of the map, in tiles), tileW (The width of a tile, in pixels), tileH (The height of a tile, in pixels). Returns: The map's handle, or 0 if a size isn't valid.

Technical Exegesis...

Makes an empty map. Add layers to it with tmAddLayer.

See the Tilemaps guide.

Returns: The map's handle, or 0 if a size isn't valid.

Example

Example.bam
map = tmCreate(200, 30, 16, 16)