示例#1
0
    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)
示例#2
0
 def update(self):
     Entity.update(self)
示例#3
0
 def __init__(self):
     Entity.__init__(self, "images/toilet_paper.png", (75, 75))
示例#4
0
文件: virus.py 项目: kcarr/party-2020
 def __init__(self):
     Entity.__init__(self, "images/covid.png", (25, 25))
示例#5
0
 def __init__(self):
     Entity.__init__(self,
                     "images/party_gopher/00.png",
                     scale=(60, 60),
                     random=False)
示例#6
0
文件: mask.py 项目: kcarr/party-2020
 def __init__(self):
     Entity.__init__(self, "images/mask.png", (75, 75))