Beispiel #1
0
    def drop_new(self):
        """Changes 'Novo jogo' image to its unpressed version. And go to person creation."""
        result = self.new_game.show()
        self.has_save = Data.has_save()

        if result == "created":
            self.controller.show()
Beispiel #2
0
    def __init__(self, screen):
        self.width, self.height = pygame.display.get_surface().get_size()
        self.screen = screen
        self.sound_status = True
        self.bg = pygame.transform.scale(
            pygame.image.load(IMAGES_PATH + "bg.png"),
            (self.width, self.height))
        self.title = pygame.transform.scale(
            pygame.image.load(MENU_IMAGES_PATH + "titulo.png"),
            (int(self.width / 12 * 7), int(self.height / 5)))
        self.new_game = NewGame(screen, self.bg)
        self.controller = Controller(screen, self.sound_status)

        self.has_save = Data.has_save()
        self.continue_img = self.scale_it(
            pygame.image.load(MENU_IMAGES_PATH +
                              "continuar-jogo.png").convert_alpha())
        self.new_img = self.scale_it(
            pygame.image.load(MENU_IMAGES_PATH +
                              "novo-jogo.png").convert_alpha())
        self.leave_img = self.scale_it(
            pygame.image.load(MENU_IMAGES_PATH + "sair.png").convert_alpha())
        self.sound_img = pygame.transform.scale(
            pygame.image.load(MENU_IMAGES_PATH +
                              "sound_on.png").convert_alpha(), (215, 150))