Beispiel #1
0
def setUpModule() -> None:
    initialize_pygame()
    initialize_controller(None)

    root_data = {
        'type':
        'decision',
        'description':
        'Lasers or rocks?',
        'choices': [{
            'one': {
                'description': 'rocks',
                'next scene': 'rock'
            }
        }, {
            'two': {
                'description': 'lose?',
                'next scene': 'lose'
            }
        }]
    }
    rock_data = {
        'type':
        'decision',
        'description':
        'One or two?',
        'choices': [{
            'one': {
                'description': 'One please',
                'next scene': 'rock'
            }
        }, {
            'two': {
                'description': 'two!',
                'next scene': 'lose'
            }
        }]
    }
    lose_data = {
        'type': 'decision',
        'description': 'You lose',
        'choices': [{
            'one': {
                'description': 'play again?',
                'next scene': 'root'
            }
        }]
    }

    QuestTest.simple_quest_data = {
        'root': root_data,
        'rock': rock_data,
        'lose': lose_data
    }
Beispiel #2
0
def setUpModule() -> None:
    initialize_pygame()
    model.initialize(LaserTest.groups, LaserTest.timer)

    ability_data = AbilityData(**load_ability_data_kwargs('laser'))
    LaserTest.laser_ability = GenericAbility(ability_data)
Beispiel #3
0
def setUpModule() -> None:
    initialize_pygame()
Beispiel #4
0
def setUpModule() -> None:
    initialize_pygame()
    model.initialize(ProjectilesTest.groups, ProjectilesTest.timer)
Beispiel #5
0
def setUpModule() -> None:
    pygame_mock.initialize_pygame()

    groups = Groups()
    timer = pygame_mock.MockTimer()
    model.initialize(groups, timer)
Beispiel #6
0
def setUpModule() -> None:
    initialize_pygame()
    model.initialize(ModTest.groups, ModTest.timer)