From d7ff3037cdf44963a66523be5fe643258e8e0d4d Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 21:06:45 +0200 Subject: [PATCH] Added sprite removal method --- src/game/Screen.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/Screen.py b/src/game/Screen.py index 7e59ebc..0534af3 100644 --- a/src/game/Screen.py +++ b/src/game/Screen.py @@ -46,6 +46,9 @@ class Screen: sprite.rect.x += self.mapCoord self.gameObject.spritesList.add(sprite) + def removeSprite(self, sprite): + self.gameObject.spritesList.remove(sprite) + # screen locations enum class Locations(Enum):