if self._age in (10, 20):
# We grow in size
refresh = True
- self._img = None # invalidate cached image
+ self._img = None # invalidate cached image
if self._age > 20 and random.randint(0, 100) < 1:
# Maybe we grow an eyeball
0)
for m in self._moulds:
if m.has_eyeball:
- self._image.blit(m.get_eyeball(), m.pygame_pos(self._image), None, 0)
+ self._image.blit(m.get_eyeball(), m.pygame_pos(self._image),
+ None, 0)
def tick(self, gamestate, space, lights):
redraw = False
from pygame import mixer
-from .constants import FREQ, BITSIZE, CHANNELS, BUFFER, DEFAULT_VOLUME, NO_SOUND
+from .constants import (FREQ, BITSIZE, CHANNELS, BUFFER, DEFAULT_VOLUME,
+ NO_SOUND)
from .loader import loader
+
class SoundManager(object):
def init(self):