projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa8c87
)
tmx2map: the tool now only converts bg layers to a bg map
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 29 Dec 2025 06:10:08 +0000
(07:10 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 29 Dec 2025 06:10:08 +0000
(07:10 +0100)
tools/tmx2map.py
patch
|
blob
|
history
diff --git
a/tools/tmx2map.py
b/tools/tmx2map.py
index cccdb31969ec70108f6334b311d347c24a6b549d..2a6a05d7627cf4ec9737cb4cad4e3a9e61addd78 100755
(executable)
--- a/
tools/tmx2map.py
+++ b/
tools/tmx2map.py
@@
-44,8
+44,12
@@
def convert(src):
for child in root:
if child.tag == "layer":
- for data in child:
- print_bg_data(data.text)
+ name = child.attrib['name']
+ if name == 'bg':
+ for data in child:
+ print_bg_data(data.text)
+ elif name == 'doors':
+ pass
convert(src)