Add an automap.sh script to automatically convert *.tmx into asci-friendly *.py files

This commit is contained in:
Shadow15510 2022-01-29 10:55:46 +01:00
parent faa5ffa23e
commit 70e9a1a3a0
1 changed files with 12 additions and 0 deletions

12
tiled/automap.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
mkdir map_python
for i in $(ls -X *.tmx)
do
echo "$i -> ${i%%.*}.py"
python converter "$i" doors=^ entities=?*
cp "${i%%.*}.py" map_python/
rm "${i%%.*}.py"
done