Exemplo n.º 1
0
def start_quest_mode(player_name):
    """
    Fonction qui commence les quêtes de l'utilisateur
    :param player_name: nom du joueur
    :return:
    """
    print "start load"
    # On reprend la progression du joueur, s'il est nouveau on fait le scénario d'intro
    # quest = Questor("IntroNaoGarden", player_name)

    scn_end = False
    while not scn_end:
        quest = Questor("PlanterBulbe", Setting.CURRENT_PLAYER.player_name if Setting.CURRENT_PLAYER else player_name)
        print "start lauch"
        scn_end = quest.launch()
        quest.player.save()
Exemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from NaoCreator.setting import Setting

Setting(nao_connected=False,
        debug=True,
        bypass_wait_for=False,
        nao_quest_v="2.1",
        load_cpt_data=False,
        ip="169.254.88.3",
        USE_MIC=False)

from NaoQuest.questor import Questor
from PlayerManager.player_manager import Player
from NaoSimulator.get_mic_input import record

Player("swan").save()
q = Questor('PlanterBulbe', "swan")
q.launch()
q.player.save()