From: Lukas Krickl Date: Mon, 29 Dec 2025 06:10:08 +0000 (+0100) Subject: tmx2map: the tool now only converts bg layers to a bg map X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=a3fbd731a072772f545c39f926704f94b776adf8;p=gbrg%2F.git tmx2map: the tool now only converts bg layers to a bg map --- diff --git a/tools/tmx2map.py b/tools/tmx2map.py index cccdb31..2a6a05d 100755 --- 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)