The attachment (.zip) includes the Python script (.py) for map generation and the configuration file (.conf). A required package for the script to work is bzwrap.
Map
The map is pretty straightforward. Red team spawns on their base in the sky and tries to make their way to the ground to capture their own flag on the blue base. In order to do so, they must find one meshbox on each level that is drivethrough. Finding it drops them one level lower. To make the meshbox differentiation easier, the colors of the blocks are randomly selected on the gray scale from 0.1 to 0.4 (making the floor color patterns different with each generation, too!).
Generate
The script allows the passing of an optional argument―which has to be an integer―that specifies the desired amount of floor levels to be generated. If not passed, the value defaults to 5.
As such, to generate a map with 7 floor levels, the command can be issued as:
Code: Select all
./dropdown.py 7
Config
I added some fancy additions to the configuration file, some of which is adding the tone of darkness and fire spirits rising in the night (actually anti-gravity yellow-orange rain). Just to make the entire thing a bit more spectacular, but you can remove it if performance is an issue.
License: CC BY-SA 4.0