21 lines
475 B
Python
21 lines
475 B
Python
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
|