Пример #1
0
                    movement = (0, 0)

        if (boss.check_movement(movement, player.position)):
            if (map.check_movement(movement, player.position)):
                player.move_player(movement)
        else:
            battle = Battle(niespanier, paichu)
            gameState.changeMode()

        gui.proceed_input(event)

    else:
        screen.fill((0, 255, 0))

        if gameState.battleType == 'boss':

            gui.draw_gui_battle(battle)
            if boss.speak(screen, gui):
                battle.drawBattle(screen)
                if battle.checkBattleState() == 'victory':
                    gameState.changeMode()
            for event in pygame.event.get():
                if event.type == pygame.QUIT:
                    gameState.done = True
                elif event.type == pygame.MOUSEBUTTONUP:
                    boss.speakCounterIncrement()

            gui.proceed_input(event)

    pygame.display.flip()