mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-31 17:33:20 +00:00
added some ui in resumelobbyscene
This commit is contained in:
@@ -77,13 +77,13 @@ namespace BBM
|
||||
ParserYAML::load(gameScene);
|
||||
} catch (std::exception const &err) {
|
||||
std::cout << err.what() << std::endl;
|
||||
Runner::gameState._loadedScenes[GameState::SceneID::MainMenuScene]->addEntity("Error message parser")
|
||||
Runner::gameState._loadedScenes[GameState::SceneID::GameScene]->addEntity("Error message parser")
|
||||
.addComponent<PositionComponent>(1920 / 5, 2 * 1080 / 4.25, 0)
|
||||
.addComponent<TimerComponent>(3s, [](WAL::Entity &myEntity, WAL::Wal &wal) {
|
||||
myEntity.scheduleDeletion();
|
||||
})
|
||||
.addComponent<Drawable2DComponent, RAY2D::Text>(err.what(), 50, RAY::Vector2(), RED);
|
||||
gameState.nextScene = BBM::GameState::SceneID::MainMenuScene;
|
||||
gameState.nextScene = BBM::GameState::SceneID::GameScene;
|
||||
return;
|
||||
}
|
||||
Runner::gameState._loadedScenes[GameState::SceneID::GameScene] = gameScene;
|
||||
|
||||
Reference in New Issue
Block a user