def hit(self): if self.canBeHurt: BasicSprite.hit(self) self.canBeHurt = False self.hurtCounter = 40 self.xspeed = - self.xspeed self.yspeed = 0 #random.gauss(-10,2) - self.yspeed Player.hurtSound.play()
def hit(self): if self.canBeHurt: BasicSprite.hit(self) self.canBeHurt = False self.hurtCounter = 40 self.xspeed = -self.xspeed self.yspeed = 0 #random.gauss(-10,2) - self.yspeed Player.hurtSound.play()
def hit(self): BasicSprite.hit(self) Insectoid.hitSound.play()
def hit(self): BasicSprite.hit(self) DerpBoss.hitSound.play()