Cleaned a bit of the tile code. Built train station

This commit is contained in:
YourWishes committed 2024-10-25 10:30:49 -05:00
1 parent 39d74cc375
commit ef84c85527
23 files changed
+214 -94

No files matched your search

+2
View File
@@ -51,6 +51,8 @@ for layer in root.findall('layer'):
for i in range(0, len(data)):
# minus 1 because tiled is 1 indexed
tileId = int(data[i]) - 1
if(int(data[i]) == 0):
tileId = 0
layerOut["tiles"].append(tileId)
output["layers"].append(layerOut)