This Repository contains python scripts including a gores map generator for teeworlds.
You can download the map generator application for windows here (no installation required).
layered | spiral |
---|---|
All results are saved to the current working directory if no other path is specified.
The scripts require Python 3 and numpy
. You can install numpy
with pip install numpy
.
python src/tw-mapgen.py
Generate a teeworlds map (the filename argument is optional):
python src/create_random_blocks.py [FILENAME]
python src/create_spiral.py [FILENAME]
python src/create_layered.py [FILENAME]
# if you want to set custom directions and config, change `create_something.py` and run
python src/create_something.py
Those scripts utilize create_map.py
to build and save the map file. The map is saved as FILENAME
, with the default FILENAME being newmap.map
.
Extract all images saved in a teeworlds map to the working directory (doesn't include referenced external images):
python src/save_images.py PATH_TO_MAP
pyinstaller tw-mapgen.py --onefile
- german map explanation: https://teeworlds-friends.de/thread/7563-roh-aufbau-einer-teeworlds-map/
- ddnet map documentation: https://ddnet.tw/libtw2-doc/map/
- teeworlds mapitem source: https://github.com/teeworlds/teeworlds/blob/master/src/game/mapitems.h
- twl datafile items source: https://github.com/Malekblubb/twl/blob/master/include/twl/files/map/map_datafile_items.hpp
- libtw2 datafile documentation: https://github.com/heinrich5991/libtw2/blob/master/doc/datafile.md