Overflown/gamedata/objects/ingame/ennemies/waterchange.py
2021-11-21 12:28:27 +01:00

24 lines
611 B
Python

from gamedata.objects.ingame.ennemies.ennemy import Ennemy
class WaterChange(Ennemy):
def __init__(self,*args):
super().__init__(*args)
self.rect[2] = self.tileset.tilew
self.rect[3] = self.tileset.tileh
self.canhit = False
self.candie = False
self.objective = self.nodes[0]["y"]+8
self.speed = self.customvalues["Speed"]
def step(self):
super().step()
if self.rect.colliderect(self.player.rect):
self.water.destinationy = self.objective
self.water.speed = self.speed
def draw(self):
pass