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
a910c09361
commit
02f7476f46
1 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ def flyingsnake(input_file: str,
|
|||
c.echo("Drawing walls...")
|
||||
walls = Image.new("RGBA", (world.size.x, world.size.y))
|
||||
draw = ImageDraw.Draw(walls)
|
||||
with click.progressbar(world.tiles, length = world.size) as bar:
|
||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
||||
for tile in bar:
|
||||
if tile.wall:
|
||||
if draw_paint and tile.wall.paint:
|
||||
|
@ -132,7 +132,7 @@ def flyingsnake(input_file: str,
|
|||
c.echo("Drawing liquids...")
|
||||
liquids = Image.new("RGBA", (world.size.x, world.size.y))
|
||||
draw = ImageDraw.Draw(liquids)
|
||||
with click.progressbar(world.tiles, length = world.size) as bar:
|
||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
||||
for tile in bar:
|
||||
if tile.liquid:
|
||||
if tile.liquid.type == li.tiles.LiquidType.WATER:
|
||||
|
@ -149,7 +149,7 @@ def flyingsnake(input_file: str,
|
|||
c.echo("Drawing blocks...")
|
||||
blocks = Image.new("RGBA", (world.size.x, world.size.y))
|
||||
draw = ImageDraw.Draw(blocks)
|
||||
with click.progressbar(world.tiles, length = world.size) as bar:
|
||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
||||
for tile in bar:
|
||||
if tile.block:
|
||||
if draw_paint and tile.block.paint:
|
||||
|
|
Loading…
Reference in a new issue