From: Skullheadx <94652084+Skullheadx@users.noreply.github.com> Date: Fri, 2 Jun 2023 02:47:36 +0000 (-0400) Subject: wave bomb fix X-Git-Tag: game~27 X-Git-Url: http://git.skullheadx.com/nixos/static/git-logo.png?a=commitdiff_plain;h=5b9ea885a09f79f93d792e411155ff62092dbaa5;p=fruit-ninja.git wave bomb fix --- diff --git a/game.py b/game.py index cd5675f..ce812d3 100644 --- a/game.py +++ b/game.py @@ -38,7 +38,7 @@ class Game: if (not -bomb.RADIUS <= br.x < WIDTH) or br.y > HEIGHT: self.bombs.remove(bomb) - if len(self.fruits) == 0: + if len(self.fruits) == 0 and len(self.bombs) == 0: self.wave += 1 for i in range(self.wave): if random.random() < self.BOMB_CHANCE: