mirror of
https://github.com/Steffo99/flyingsnake.git
synced 2024-12-22 22:44:21 +00:00
Update __main__.py
This commit is contained in:
parent
e971e76312
commit
16117fa674
1 changed files with 8 additions and 8 deletions
|
@ -128,8 +128,8 @@ def flyingsnake(input_file: str,
|
||||||
color = tuple(colors["Walls"][str(tile.wall.type.value)])
|
color = tuple(colors["Walls"][str(tile.wall.type.value)])
|
||||||
draw.point((x, y), color)
|
draw.point((x, y), color)
|
||||||
bar.update(i+1)
|
bar.update(i+1)
|
||||||
i = i+1
|
i = i+1
|
||||||
del draw
|
del draw
|
||||||
to_merge.append(walls)
|
to_merge.append(walls)
|
||||||
|
|
||||||
if draw_liquids:
|
if draw_liquids:
|
||||||
|
@ -148,8 +148,8 @@ def flyingsnake(input_file: str,
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Lava"]))
|
draw.point((x, y), tuple(colors["Globals"]["Lava"]))
|
||||||
elif tile.liquid.type == li.tiles.LiquidType.HONEY:
|
elif tile.liquid.type == li.tiles.LiquidType.HONEY:
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Honey"]))
|
draw.point((x, y), tuple(colors["Globals"]["Honey"]))
|
||||||
bar.update(i+1)
|
bar.update(i+1)
|
||||||
i = i+1
|
i = i+1
|
||||||
del draw
|
del draw
|
||||||
to_merge.append(liquids)
|
to_merge.append(liquids)
|
||||||
|
|
||||||
|
@ -168,8 +168,8 @@ def flyingsnake(input_file: str,
|
||||||
else:
|
else:
|
||||||
color = tuple(colors["Blocks"][str(tile.block.type.value)])
|
color = tuple(colors["Blocks"][str(tile.block.type.value)])
|
||||||
draw.point((x, y), color)
|
draw.point((x, y), color)
|
||||||
bar.update(i+1)
|
bar.update(i+1)
|
||||||
i = i+1
|
i = i+1
|
||||||
del draw
|
del draw
|
||||||
to_merge.append(blocks)
|
to_merge.append(blocks)
|
||||||
|
|
||||||
|
@ -191,8 +191,8 @@ def flyingsnake(input_file: str,
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Wire2"]))
|
draw.point((x, y), tuple(colors["Globals"]["Wire2"]))
|
||||||
if tile.wiring.yellow:
|
if tile.wiring.yellow:
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Wire3"]))
|
draw.point((x, y), tuple(colors["Globals"]["Wire3"]))
|
||||||
bar.update(i+1)
|
bar.update(i+1)
|
||||||
i = i+1
|
i = i+1
|
||||||
del draw
|
del draw
|
||||||
to_merge.append(wires)
|
to_merge.append(wires)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue