Skip to content

tw-tooling/tw-simple-mapgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Map-generator for Teeworlds

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
Map 1 Map 2

All results are saved to the current working directory if no other path is specified.

Requirements

The scripts require Python 3 and numpy. You can install numpy with pip install numpy.

start gui (from source)

python src/tw-mapgen.py

create map

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.

save images

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

generate gui application with pyinstaller

pyinstaller tw-mapgen.py --onefile

helpful teeworlds map-/datafile documentation: