def gifify(self, player_image_index): # gifify the party gopher # Run gif_pre_processor.py before you do this part # get the nth file file_list = sorted(listdir("images/party_gopher")) file_path = "images/party_gopher/" + file_list[player_image_index % len(file_list)] # load, scale, and convert the image self.surf = Entity.surf_render(self, file_path, scale=(60, 60)) self.surf.set_colorkey((255, 255, 255), RLEACCEL)
def update(self): Entity.update(self)
def __init__(self): Entity.__init__(self, "images/toilet_paper.png", (75, 75))
def __init__(self): Entity.__init__(self, "images/covid.png", (25, 25))
def __init__(self): Entity.__init__(self, "images/party_gopher/00.png", scale=(60, 60), random=False)
def __init__(self): Entity.__init__(self, "images/mask.png", (75, 75))