Beispiel #1
0
    def __init__(self, base_game, surface):
        BaseScreen.__init__(self)
        self.base_game = base_game
        self.status = False
        self.surface = surface
        self.dt = 1.0/60.0
        self.bg = pygame.image.load(Utils.get_path('image/menu-bg.png'))
        self.font = {
            20: pygame.font.Font(Utils.get_path('font/ActualBook.otf'), 20),
            55: pygame.font.Font(Utils.get_path('font/ActualBook.otf'), 55)
        }

        self.high_score_list = []
        self.get_high_score()
Beispiel #2
0
    def __init__(self, base_game, surface):
        BaseScreen.__init__(self)
        self.base_game = base_game
        self.status = False
        self.surface = surface
        self.dt = 1.0 / 60.0
        self.bg = pygame.image.load(Utils.get_path('image/menu-bg.png'))
        self.font = {
            20: pygame.font.Font(Utils.get_path('font/ActualBook.otf'), 20),
            55: pygame.font.Font(Utils.get_path('font/ActualBook.otf'), 55)
        }

        self.high_score_list = []
        self.get_high_score()
Beispiel #3
0
    def __init__(self, base_game, surface):
        BaseScreen.__init__(self)
        self.base_game = base_game
        self.status = False
        self.surface = surface
        self.dt = 1.0/60.0
        self.bg = pygame.image.load(Utils.get_path('image/menu-bg.png'))

        self.menu_text = Menu(self.surface, 'Setting', 70, 565, 60)
        self.menu_text.is_selected = True
        menu_sound = SettingMenu(self.surface, 'Sound', 35, 560, 150)
        menu_sound.is_selected = True
        menu_music = SettingMenu(self.surface, 'Music', 35, 565, 190)
        menu_exit = Menu(self.surface, 'Back', 35, 570, 230)

        self.menus = [menu_sound, menu_music, menu_exit]
Beispiel #4
0
    def __init__(self, base_game, surface):
        BaseScreen.__init__(self)
        self.base_game = base_game
        self.status = False
        self.surface = surface
        self.dt = 1.0 / 60.0
        self.bg = pygame.image.load(Utils.get_path('image/menu-bg.png'))

        self.menu_text = Menu(self.surface, 'Setting', 70, 565, 60)
        self.menu_text.is_selected = True
        menu_sound = SettingMenu(self.surface, 'Sound', 35, 560, 150)
        menu_sound.is_selected = True
        menu_music = SettingMenu(self.surface, 'Music', 35, 565, 190)
        menu_exit = Menu(self.surface, 'Back', 35, 570, 230)

        self.menus = [menu_sound, menu_music, menu_exit]
Beispiel #5
0
    def __init__(self, base_game, surface):
        BaseScreen.__init__(self)
        self.base_game = base_game
        self.status = False
        self.surface = surface
        self.bg = pygame.image.load(Utils.get_path('image/menu-bg.png'))

        self.menu_text = Menu(self.surface, 'Menu', 70, 565, 30)

        menu_single = Menu(self.surface, 'Single Player', 35, 560, 120)
        menu_single.is_selected = True
        menu_multi = Menu(self.surface, 'Multi Player', 35, 565, 160)
        menu_setting = Menu(self.surface, 'Settings', 35, 570, 200)
        menu_high_score = Menu(self.surface, 'High Score', 35, 575, 240)
        menu_exit = Menu(self.surface, 'Exit Game', 35, 577, 280)

        self.menus = [menu_single, menu_multi, menu_setting, menu_high_score, menu_exit]