mirror of
https://github.com/Steffo99/flyingsnake.git
synced 2024-12-22 14:44:17 +00:00
Update __main__.py
This commit is contained in:
parent
16117fa674
commit
dcdcf62763
1 changed files with 4 additions and 4 deletions
|
@ -116,7 +116,7 @@ def flyingsnake(input_file: str,
|
||||||
c.echo("Drawing walls...")
|
c.echo("Drawing walls...")
|
||||||
walls = Image.new("RGBA", (world.size.x, world.size.y))
|
walls = Image.new("RGBA", (world.size.x, world.size.y))
|
||||||
draw = ImageDraw.Draw(walls)
|
draw = ImageDraw.Draw(walls)
|
||||||
i = 0
|
i = 0
|
||||||
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
||||||
for x in range(world.size.x):
|
for x in range(world.size.x):
|
||||||
for y in range(world.size.y):
|
for y in range(world.size.y):
|
||||||
|
@ -136,7 +136,7 @@ def flyingsnake(input_file: str,
|
||||||
c.echo("Drawing liquids...")
|
c.echo("Drawing liquids...")
|
||||||
liquids = Image.new("RGBA", (world.size.x, world.size.y))
|
liquids = Image.new("RGBA", (world.size.x, world.size.y))
|
||||||
draw = ImageDraw.Draw(liquids)
|
draw = ImageDraw.Draw(liquids)
|
||||||
i=0
|
i=0
|
||||||
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
||||||
for x in range(world.size.x):
|
for x in range(world.size.x):
|
||||||
for y in range(world.size.y):
|
for y in range(world.size.y):
|
||||||
|
@ -157,7 +157,7 @@ def flyingsnake(input_file: str,
|
||||||
c.echo("Drawing blocks...")
|
c.echo("Drawing blocks...")
|
||||||
blocks = Image.new("RGBA", (world.size.x, world.size.y))
|
blocks = Image.new("RGBA", (world.size.x, world.size.y))
|
||||||
draw = ImageDraw.Draw(blocks)
|
draw = ImageDraw.Draw(blocks)
|
||||||
i=0
|
i=0
|
||||||
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
||||||
for x in range(world.size.x):
|
for x in range(world.size.x):
|
||||||
for y in range(world.size.y):
|
for y in range(world.size.y):
|
||||||
|
@ -177,7 +177,7 @@ def flyingsnake(input_file: str,
|
||||||
c.echo("Drawing wires...")
|
c.echo("Drawing wires...")
|
||||||
wires = Image.new("RGBA", (world.size.x, world.size.y))
|
wires = Image.new("RGBA", (world.size.x, world.size.y))
|
||||||
draw = ImageDraw.Draw(wires)
|
draw = ImageDraw.Draw(wires)
|
||||||
i=0
|
i=0
|
||||||
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
|
||||||
for x in range(world.size.x):
|
for x in range(world.size.x):
|
||||||
for y in range(world.size.y):
|
for y in range(world.size.y):
|
||||||
|
|
Loading…
Reference in a new issue