1
Fork 0
mirror of https://github.com/Steffo99/flyingsnake.git synced 2024-12-22 06:34:18 +00:00

Update __main__.py

This commit is contained in:
Garvita Jain 2019-10-02 00:05:09 +05:30 committed by GitHub
parent 16117fa674
commit dcdcf62763
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
i = 0
i = 0
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
for x in range(world.size.x):
for y in range(world.size.y):
@ -136,7 +136,7 @@ def flyingsnake(input_file: str,
c.echo("Drawing liquids...")
liquids = Image.new("RGBA", (world.size.x, world.size.y))
draw = ImageDraw.Draw(liquids)
i=0
i=0
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
for x in range(world.size.x):
for y in range(world.size.y):
@ -157,7 +157,7 @@ def flyingsnake(input_file: str,
c.echo("Drawing blocks...")
blocks = Image.new("RGBA", (world.size.x, world.size.y))
draw = ImageDraw.Draw(blocks)
i=0
i=0
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
for x in range(world.size.x):
for y in range(world.size.y):
@ -177,7 +177,7 @@ def flyingsnake(input_file: str,
c.echo("Drawing wires...")
wires = Image.new("RGBA", (world.size.x, world.size.y))
draw = ImageDraw.Draw(wires)
i=0
i=0
with c.progressbar(max_value = world.size.x*world.size.y) as bar:
for x in range(world.size.x):
for y in range(world.size.y):