Added sprite removal method

This commit is contained in:
Marcin Kostrzewski 2020-04-05 21:06:45 +02:00
parent f399ba0d53
commit d7ff3037cd

View File

@ -46,6 +46,9 @@ class Screen:
sprite.rect.x += self.mapCoord sprite.rect.x += self.mapCoord
self.gameObject.spritesList.add(sprite) self.gameObject.spritesList.add(sprite)
def removeSprite(self, sprite):
self.gameObject.spritesList.remove(sprite)
# screen locations enum # screen locations enum
class Locations(Enum): class Locations(Enum):