Contents

dusk.buildMap()

Synopsis

Creates a map from a file or map data.

Description

This is Dusk's "root" function. It creates a Dusk map from data and returns it for your use.

Arguments

fileName : String, Dusk Map Data

If this is a string, Dusk reads the file at that location and builds the map. If it's a table, Dusk assumes it is map data loaded through dusk.loadMap() and builds it accordingly. This means that you can load a map with dusk.loadMap(), then edit the data, then create the map itself.

Returns

map : Dusk Map

The map built from the data.