diff --git a/__pycache__/colours.cpython-37.pyc b/__pycache__/colours.cpython-37.pyc index e756ecd..ba9323e 100644 Binary files a/__pycache__/colours.cpython-37.pyc and b/__pycache__/colours.cpython-37.pyc differ diff --git a/__pycache__/config.cpython-37.pyc b/__pycache__/config.cpython-37.pyc index dec1aeb..0c925e0 100644 Binary files a/__pycache__/config.cpython-37.pyc and b/__pycache__/config.cpython-37.pyc differ diff --git a/__pycache__/events.cpython-37.pyc b/__pycache__/events.cpython-37.pyc index 90e9840..6df7fe5 100644 Binary files a/__pycache__/events.cpython-37.pyc and b/__pycache__/events.cpython-37.pyc differ diff --git a/__pycache__/maps.cpython-37.pyc b/__pycache__/maps.cpython-37.pyc index 243fdd1..07b85ce 100644 Binary files a/__pycache__/maps.cpython-37.pyc and b/__pycache__/maps.cpython-37.pyc differ diff --git a/__pycache__/sprites.cpython-37.pyc b/__pycache__/sprites.cpython-37.pyc index 43edba8..7b63afc 100644 Binary files a/__pycache__/sprites.cpython-37.pyc and b/__pycache__/sprites.cpython-37.pyc differ diff --git a/data/graphics/end0.png b/data/graphics/end0.png index fe335d6..9a688d6 100644 Binary files a/data/graphics/end0.png and b/data/graphics/end0.png differ diff --git a/data/graphics/endp1.png b/data/graphics/endp1.png index 7244fa1..aac348c 100644 Binary files a/data/graphics/endp1.png and b/data/graphics/endp1.png differ diff --git a/data/graphics/endp2.png b/data/graphics/endp2.png index cacd1f0..d182022 100644 Binary files a/data/graphics/endp2.png and b/data/graphics/endp2.png differ diff --git a/mygame.py b/mygame.py index 47bd168..90678b5 100644 --- a/mygame.py +++ b/mygame.py @@ -60,6 +60,8 @@ def clear_round(): events.p1_group.remove() events.p2_group.remove() events.players.clear() + for i in events.bars: + i.delete() events.bars.clear() events.p1_bullet.clear() events.p2_bullet.clear() diff --git a/sprites.py b/sprites.py index b514000..0faaf07 100644 --- a/sprites.py +++ b/sprites.py @@ -156,4 +156,7 @@ class HPBar(pygame.sprite.Sprite): self.image=pygame.transform.scale(self.image, (self.width, 30)) def update(self): - self.gothit \ No newline at end of file + self.gothit + + def delete(self): + self.kill() \ No newline at end of file