mirror of
https://github.com/Steffo99/flyingsnake.git
synced 2024-12-22 06:34:18 +00:00
Fix typo (world.size_y to world.size.y)
This commit is contained in:
parent
27bef6d29d
commit
d726e69265
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ def flyingsnake(input_file: str,
|
||||||
earth_y = min(world.cavern_level - min_y, height)
|
earth_y = min(world.cavern_level - min_y, height)
|
||||||
draw.rectangle(((0, curr_y), (width, earth_y)), tuple(colors["Globals"]["Earth"]))
|
draw.rectangle(((0, curr_y), (width, earth_y)), tuple(colors["Globals"]["Earth"]))
|
||||||
curr_y = earth_y + 1
|
curr_y = earth_y + 1
|
||||||
edge_of_rock = world.size_y - 192
|
edge_of_rock = world.size.y - 192
|
||||||
if max_y > world.cavern_level and min_y <= edge_of_rock:
|
if max_y > world.cavern_level and min_y <= edge_of_rock:
|
||||||
rock_y = min(edge_of_rock - min_y, height)
|
rock_y = min(edge_of_rock - min_y, height)
|
||||||
draw.rectangle(((0, curr_y), (width, edge_of_rock + 1)), tuple(colors["Globals"]["Rock"]))
|
draw.rectangle(((0, curr_y), (width, edge_of_rock + 1)), tuple(colors["Globals"]["Rock"]))
|
||||||
|
|
Loading…
Reference in a new issue