def main(): game().initialize() if ENABLE_DEBUG_OPTIONS: _parse_args() game().engine.run()
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()
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']
def setUp(self): super(ObjectsTests, self).setUp() self.game = game() self.game.initialize() self.objects = Objects()
def setUp(self): super(TombTests, self).setUp() self.g = game() self.g.initialize() self.config = self.g.config