Skip to content

Commit

Permalink
fixed the invisible wall code
Browse files Browse the repository at this point in the history
  • Loading branch information
estevaofon committed Apr 16, 2021
1 parent 78aa540 commit a4d0b45
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.py
Expand Up @@ -332,10 +332,12 @@ def post_solve_pig_wood(arbiter, space, _):
elif event.type == pygame.KEYDOWN and event.key == pygame.K_w:
# Toggle wall
if wall:
space.remove(static_lines1)
for line in static_lines1:
space.remove(line)
wall = False
else:
space.add(static_lines1)
for line in static_lines1:
space.add(line)
wall = True

This comment has been minimized.

Copy link
@Wahee-aljabir

Wahee-aljabir Apr 3, 2024

bad

This comment has been minimized.

Copy link
@Wahee-aljabir

elif event.type == pygame.KEYDOWN and event.key == pygame.K_s:
Expand Down

0 comments on commit a4d0b45

Please sign in to comment.