Object-Map
From Spheriki
The Sphere object corresponding to the map engine after it has been started.
Contents |
Initalizers
Methods
- Map.save()
Members
No members.
Examples
As given on the Map.save() page.
// Assume the map engine is already // started before this code. ChangeMap("base.rmp"); SetTile(10, 20, 2, 3); var Mappy = GetMapEngine(); Mappy.save("new.rmp")
Loads the map file "base.rmp" and changes the tile at (10,2) on layer 2 to the third tile index of the map's tileset, and saves the map to "new.rmp".
Notes
Only one map engine can be executed at a time, and as such, most information regarding it is handled with seperate functions. The main purpose of the map engine object is for saving a map to the harddrive, and as a place to incorporate future features.