Add soldiers

This commit is contained in:
2024-01-23 20:31:23 +01:00
parent 777ebeadc4
commit 07d1852fb9
9 changed files with 313 additions and 36 deletions

View File

@@ -506,6 +506,10 @@ class EnumWriter:
x, y = k
writer.output(f"base.width *= {x};\n")
writer.output(f"base.height *= {y};\n")
if x > 1:
writer.output(f"base.x -= {(x - 1) * tile_width};\n")
if y > 1:
writer.output(f"base.y -= {(y - 1) * tile_height};\n")
writer.output("break;\n")
writer.unindent()
writer.output("default: break;\n")