-
Notifications
You must be signed in to change notification settings - Fork 0
MapLoader
LarsZauberer edited this page Aug 4, 2021
·
1 revision
Please see the modelling section to learn how to create a map.
After creating a map.json
file you can add the path to it to the maploader
defined in the main.py
file.
The key in the Maploader dictionary is the name of the map it will listen to when you try to open it.
To load the map there are multiple options. For testing you can just use the
developer console command map
and afterwards give the name of the map.
You can also load the map with the python code.
# In the main.py file
self.mapLoader.loadMap("test")
# From a GameObject
self.app.mapLoader.loadMap("test")