Added sprite removal method
This commit is contained in:
parent
f399ba0d53
commit
d7ff3037cd
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user