Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinran-J committed Jul 23, 2022
1 parent 10ab8c2 commit a1d4a11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pixeljump/levels/act3.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def setup_level(self):
self.active_sprites,
self.player_sprite,
target=self.target,
act=3,
act=2,
collision_sprites=self.collision_sprites,
visible_sprites=self.visible_sprites,
active_sprites=self.active_sprites,
Expand Down
4 changes: 2 additions & 2 deletions src/pixeljump/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def check_win(self) -> None:
self.end_act = True
if self.act == 1:
win_screen1()
elif self.act == 2:
elif self.act == 2 and not self.can_shoot:
win_screen2()
elif self.act == 3:
elif self.act == 2 and self.can_shoot:
win_screen3()

def animation(self):
Expand Down

0 comments on commit a1d4a11

Please sign in to comment.