void TetrisGameInstance::start() {
	m_video_manager->setupVideo();
	if(m_scene_manager != nullptr){
		loadScenes();
		m_scene_manager->run();
	}
}
示例#2
0
void Game::start() {
    loadScenes();
    changeScene("test");

    while (_currentScene != nullptr) {
        _currentScene->run();
    }

    exit(0);
}
示例#3
0
void Game::start() {
    loadScenes();

    _currentScene = (*_scenes.find("Menu")).second;

    while (_currentScene != nullptr) {
        _currentScene->run();
    }

    exit(0);
}
示例#4
0
void bankManager::loadSettings(ofxXmlSettings & XML){
    
    currentScene->unTriggerAll();
    
    currentZone.reset();
    currentScene.reset();
    
    loadScenes(XML);
    loadBanks(XML);

    
}
示例#5
0
void SceneManager::reload()
{
  clean();
  loadScenes();   
}