Overflown/gamedata/objects/ingame/ennemies/trashbag.py

21 lines
475 B
Python
Raw Normal View History

2021-11-24 15:47:52 +01:00
from gamedata.objects.ingame.ennemies.ennemy import Ennemy
class TrashBag(Ennemy):
def __init__(self,*args):
super().__init__(*args)
self.sprite = self.game.sprite_lib["trash.png"]
self.deadsprite = self.sprite
self.rect[2],self.rect[3] = self.sprite.get_size()
self.respawn = False
self.canhit = False
self.game.globals["totaltrashes"]+=1
def deadtrigger(self):
self.game.globals["trashes"]+=1