Beispiel #1
0
 def quitFunction(self):
     IM = comicReader(pjoin("resources",
                            "intermissions",
                            "main",
                            "4"), self.screen,
                      self.keys["action"], self.mainLogger)
     IM.look()
     pygame.event.post(pygame.event.Event(pygame.QUIT))
Beispiel #2
0
 def makeHowToMenu(self):
     self.howTo = textMenuItem("How to Play", (50, 420),
                               lambda: self.editDesc(
                                   "Learn how to play the game"),
                               lambda: comicReader(pjoin("resources",
                                                      "howto"), self.screen,
                                                self.keys["action"], self.mainLogger).look(),
                               self.config, self.sounds, self.font)
     self.activeItems.append(self.howTo)
     self.items.append(self.howTo)
Beispiel #3
0
    def startIntermission(self, ID):
        """Starts an comicReader intermission instance

        Keyword Arguments:
        - ID: The intermission Identifier
        """
        IM = comicReader(pjoin("resources",
                               "intermissions",
                               self.gameStatus["campaignName"],
                               ID), self.screen,
                         self.keys["action"], self.mainLogger)
        IM.look()