""" Tools for creating serum actors. """
+import random
from pgzero.loaders import images
from pygame.constants import BLEND_RGBA_MULT
+from pygame.transform import rotate
from .actors.surf import SurfActor
SERUMS = ["smart", "fast", "strong"]
def assemble(self, name):
assert name in SERUMS
puddle = images.load("serum%s/serum" % (self.suffix,))
+ puddle = rotate(puddle, 90 * random.randint(0, 3))
serum_icon = images.load("serum%s/%s" % (
self.suffix, SERUM_TILENAME_MAP[name],))
frame = puddle.copy()