_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
The map setup functions load the actual map into the engine. This includes functions to load the tileset which are defined in the Tileset page.
Other functions defined elsewhere are usefull in the map setup step: CreateUnit and SetPlayerData, SetSharedVision, SetDiplomacy.
Note: This is for the new map format. Not implemented yet.
SetStartView(0, 20, 10)
SetAiType(0, "ai-air")
Note: This is for the new map format. Not implemented yet.
SetHeightMap("doomworld/doomworldheights.png")
-- Create a uniform desert of sand.
for i=0 to 32 do
for j=0 to 32 do
SetTile("sand", i, j)
end
end
Note: This is for the new map format. Not implemented yet.
-- Load the full map from a file
SetTileMap("doomworld/doomworld.tmf", 0, 0, 64, 64)
-- Replace the middle square with a tilemap showing a volcano
SetTileMap("doomworld/volcano.tmf", 25, 25, 10, 10)