1
Fork 0
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:
Garvita Jain 2019-10-02 00:00:20 +05:30 committed by GitHub
parent e971e76312
commit 16117fa674
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)