Language

Map.setProperties


Map.setProperties(string mapname, int difficulty, int background_r, int background_g, int background_b, int spawnx, int spawny)

Description

Set the map properties. Should only be called in level.lua.

Parameters

mapname
The name of the map. Max 40 characters.
difficulty
The difficulty of the map between [0 and 5]. 0 = super easy, 5 = impossible.
background_r
The red color value of the background of the map. Between 0 and 255.
background_g
The green color value of the background of the map. Between 0 and 255.
background_b
The blue color value of the background of the map. Between 0 and 255.
spawnx
The X position of the player's spawn.
spawny
The Y position of the player's spawn.

Additional Notes

This function is only in level.lua and thus must not be changed.