Skip to content

Map Making

ThatBoiKaden edited this page Feb 8, 2021 · 3 revisions

Creating new maps will require some Python knowledge, as maps are class objects that are used to setup the PyZork game space. You can see an empty map here. Please note that your class object must be named 'map' otherwise PyZork will not be able to setup the map and may crash. The name of the python file doesn't matter, as the way PyZork loads a map is by copying the code of the selected map into the maps.py file. All the code in the empty map file is necessary, otherwise your map will result in an error that will crash the game. You can change the self.name attribute to whatever you please, this is the attribute referenced to get the name of your map. If you set self.name equal to None, the game will not recognize the map forcing the player to select it again (for those of you that are just that evil). Note that any code you write in the functions will be executed upon the startup of PyZork (cough cough mods). I plan on releasing a map-maker tool to eliminate the need for Python knowledge eventually. More examples and tutorials coming soon!

Clone this wiki locally