|
NewLevel | ||
LevelIndex = NewLevel(MapIndex, Width, Height) | ||
Parameters: MapIndex = The Index Identifier of the Map you wish to assign this level to. Width = The width of the level in tiles Height = The Height of the level in tiles |
||
Returns: LevelIndex = The index of the newly created level |
||
The NewLevel() function will dynamically create a level within to a map and return it's index. So such you only need to specify the map and the width and height of the level in tiles. FACTS: * Levels can not be drawn until the maps graphics blocks have been loaded/created. * 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: | CreateLevel | CreateMap | DrawMap | GetFreeMap | GetFreeMapLevel | Maps | NewMap : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |