aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-06-08 19:42:36 +0100
committerJuan J. Martinez <jjm@usebox.net>2021-06-08 19:42:39 +0100
commitca9f36b82d7987546efd60acfaac22e3fd834f16 (patch)
treeb1f6a9358a14fb7487e82ec17548ca82d7a98118 /tools
parentc4781eb30f1236891d72f03e3cc5fd8be540fd05 (diff)
downloadubox-msx-lib-ca9f36b82d7987546efd60acfaac22e3fd834f16.tar.gz
ubox-msx-lib-ca9f36b82d7987546efd60acfaac22e3fd834f16.zip
Removed map customization
This was added by mistake when the script was imported.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/map.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/map.py b/tools/map.py
index 53c98b7..368a41a 100755
--- a/tools/map.py
+++ b/tools/map.py
@@ -214,23 +214,6 @@ def main():
x = obj["x"] % (args.rw * tilewidth)
y = obj["y"] % (args.rh * tileheight)
- if name == "blocked":
- if obj["width"] > obj["height"]:
- if y == 0:
- # up blocked
- out[m][1] |= (1 << 4)
- else:
- # down blocked
- out[m][1] |= (1 << 5)
- else:
- if x == 0:
- # left blocked
- out[m][1] |= (1 << 6)
- else:
- # tight blocked
- out[m][1] |= (1 << 7)
- continue
-
t = et_names.index(name)
# MSB is direction
@@ -266,22 +249,6 @@ def main():
y += special
special //= tileheight
- if name == "elevator":
- try:
- respawn = json.loads(get_property(obj, "respawn", "[]"))
- if args.max_bytes:
- for name in respawn:
- check_bytes(name)
- special = [et_names.index(et) for et in respawn]
- assert(len(special) < 255)
- except Exception as ex:
- parser.error("Error parsing respawn: %s" % ex)
-
- # terminator
- special.append(0xff)
- # size
- special = [len(special), ] + special
-
map_ents[m].extend([t, x, y])
if special is not None:
if isinstance(special, (tuple, list)):