Exemple #1
0
    def __init__(self, game_info):
        GameState.__init__(self, GameState.STATE_LOAD, GameState.STATE_GAME)

        self.game_info = game_info
        self.text_helper = TextHelper()

        self.load_screen_time = -1
        # Mario frame
        sprite_sheet = SpriteSheet("data/characters.gif")
        self.mario_frame = sprite_sheet.get_image(coords.MARIO_SMALL_STANDING_RIGHT, c.IMG_MULTIPLIER)
Exemple #2
0
    def __init__(self, game_info):
        GameState.__init__(self, GameState.STATE_LOAD, GameState.STATE_GAME)

        self.game_info = game_info
        self.text_helper = TextHelper()

        self.load_screen_time = -1
        # Mario frame
        sprite_sheet = SpriteSheet("data/characters.gif")
        self.mario_frame = sprite_sheet.get_image(
            coords.MARIO_SMALL_STANDING_RIGHT, c.IMG_MULTIPLIER)
    def __init__(self, game_info, sound_manager):
        GameState.__init__(self, GameState.STATE_GAME_OVER, GameState.STATE_MENU)

        self.game_info = game_info
        self.sound_manager = sound_manager

        self.load_screen_time = -1

        self.sound_manager.play_music(c.MUSIC_GAME_OVER)

        self.text_helper = TextHelper()
Exemple #4
0
    def __init__(self, game_info, sound_manager):
        GameState.__init__(self, GameState.STATE_GAME_OVER,
                           GameState.STATE_MENU)

        self.game_info = game_info
        self.sound_manager = sound_manager

        self.load_screen_time = -1

        self.sound_manager.play_music(c.MUSIC_GAME_OVER)

        self.text_helper = TextHelper()