mirror of
https://github.com/Steffo99/flyingsnake.git
synced 2024-12-23 06:54:19 +00:00
Update __main__.py
This commit is contained in:
parent
51c03c76d8
commit
657cb68205
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,7 @@ def flyingsnake(input_file: str,
|
||||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
with c.progressbar(world.tiles, length = world.size) 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):
|
||||||
|
tile = bar[x,y]
|
||||||
if tile.wall:
|
if tile.wall:
|
||||||
if draw_paint and tile.wall.paint:
|
if draw_paint and tile.wall.paint:
|
||||||
color = tuple(colors["Paints"][str(tile.wall.paint)])
|
color = tuple(colors["Paints"][str(tile.wall.paint)])
|
||||||
|
@ -135,6 +136,7 @@ def flyingsnake(input_file: str,
|
||||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
with c.progressbar(world.tiles, length = world.size) 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):
|
||||||
|
tile = bar[x,y]
|
||||||
if tile.liquid:
|
if tile.liquid:
|
||||||
if tile.liquid.type == li.tiles.LiquidType.WATER:
|
if tile.liquid.type == li.tiles.LiquidType.WATER:
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Water"]))
|
draw.point((x, y), tuple(colors["Globals"]["Water"]))
|
||||||
|
@ -152,6 +154,7 @@ def flyingsnake(input_file: str,
|
||||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
with c.progressbar(world.tiles, length = world.size) 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):
|
||||||
|
tile = bar[x,y]
|
||||||
if tile.block:
|
if tile.block:
|
||||||
if draw_paint and tile.block.paint:
|
if draw_paint and tile.block.paint:
|
||||||
color = tuple(colors["Paints"][str(tile.block.paint)])
|
color = tuple(colors["Paints"][str(tile.block.paint)])
|
||||||
|
@ -168,6 +171,7 @@ def flyingsnake(input_file: str,
|
||||||
with c.progressbar(world.tiles, length = world.size) as bar:
|
with c.progressbar(world.tiles, length = world.size) 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):
|
||||||
|
tile = bar[x,y]
|
||||||
if tile.wiring:
|
if tile.wiring:
|
||||||
if tile.wiring.red:
|
if tile.wiring.red:
|
||||||
draw.point((x, y), tuple(colors["Globals"]["Wire"]))
|
draw.point((x, y), tuple(colors["Globals"]["Wire"]))
|
||||||
|
|
Loading…
Reference in a new issue