Пример #1
0
    def render(self):

        self.engine.screen.fill(BLACK)

        if self.preBlackOutTimer < self.timeBeforeBlackOut:
            self.preBlackOutTimer += self.engine.clock.get_time()

            for img in self.images:
                self.engine.screen.blit(img["image"], img["position"])

            Scene.render(self)

        elif self.blackOutTimer < self.timeBetweenScreens:

            self.blackOutTimer += self.engine.clock.get_time()

        else:
            self.resetScreen()

            if self.currentScreenIndex < len(self.screens) - 1:
                self.currentScreenIndex += 1
                self.screens[self.currentScreenIndex]()
            else:
                self.engine.changeScene("mainMenu")
Пример #2
0
    def render(self):
        self.engine.screen.fill(BLACK)

        Scene.render(self)