import random
from pgzero.constants import keys
+from pgzero.loaders import sounds
from pygame import Surface
import pygame.locals as pgl
from ..loaders.levelloader import levels
self._key_rate = 0.2
self._last_key_down = 0
self._last_dmg = 0
+ self._screech = sounds.load("screech")
return self._init_roaches(world)
def _init_items(self):
return
roach = random.choice(world.roaches)
roach.health -= self._last_dmg
+ self._screech.play()
self._last_dmg = 0
if roach.health < 0:
index = [x.name for x in world.roaches].index(roach.name)