|
CreateLevel | ||
CreateLevel MapIndex, LevelIndex, Width, Height | ||
Parameters: MapIndex = The Index Identifier of the Map you wish to assign this level to. LevelIndex = The index of the level you wish to create. Width = The width of the level in tiles Height = The Height of the level in tiles |
||
Returns: NONE | ||
Createlevel will create a level array within a map. So you need to specify the map you wish to store this level in, the levels index within the map and the width and height of the level in tiles. FACTS: * Levels can not be drawn until the maps graphic blocks have been loaded/created. (CreateMapGFX,LoadMapGFX) * The Level Width parameter is in TILES not pixels. * The Level Height parameter is in TILES not pixels. Mini Tutorial: This example shows how to first create a Map, then create a Level and display the information about this map and it's newly created map.
This example would output.
|
Related Info: | CreateMap | DrawMap | GetFreeMap | GetFreeMapLevel | NewLevel | NewMap : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |