Exemple #1
0
def main():
    game().initialize()

    if ENABLE_DEBUG_OPTIONS:
        _parse_args()

    game().engine.run()
Exemple #2
0
def gen_test():
    game().initialize()

    # Configure with the generation test parameters
    config = game().config
    config.map_use_fog = False
    config.object_use_fov = False

    game().engine.run()
Exemple #3
0
def _parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument('--no-fog', dest='no_fog', action='store_true')
    parser.add_argument('--no-fov', dest='no_fov', action='store_true')

    args = parser.parse_args()
    args = vars(args)

    config = game().config
    config.map_use_fog = not args['no_fog']
    config.object_use_fov = not args['no_fov']
Exemple #4
0
 def setUp(self):
     super(ObjectsTests, self).setUp()
     self.game = game()
     self.game.initialize()
     self.objects = Objects()
Exemple #5
0
 def setUp(self):
     super(TombTests, self).setUp()
     self.g = game()
     self.g.initialize()
     self.config = self.g.config