#include #include #include "Runner.hpp" #include "Component/Music/MusicComponent.hpp" #include "Component/Controllable/ControllableComponent.hpp" #include "Component/Position/PositionComponent.hpp" #include "Component/Keyboard/KeyboardComponent.hpp" #include "Component/Renderer/Drawable2DComponent.hpp" #include "Component/Button/ButtonComponent.hpp" #include "Drawables/2D/Text.hpp" #include "Component/IntroAnimation/IntroAnimationComponent.hpp" namespace RAY2D = RAY::Drawables::Drawables2D; namespace BBM { std::shared_ptr Runner::loadSplashScreenScene() { auto scene = std::make_shared(); addMenuControl(*scene); scene->addEntity("animation component") .addComponent(); scene->addEntity("background") .addComponent(0, 0, 0) .addComponent(RAY::Vector2(), RAY::Vector2(1920, 1080)); scene->addEntity("Press space to skip") .addComponent(1920 - 250, 1080 - 30, 0) .addComponent("Press space to skip", 20, RAY::Vector2(), BLACK) .addComponent() .addComponent() .addComponent([](WAL::Entity &entity, WAL::Wal &) { gameState.nextScene = BBM::GameState::SceneID::TitleScreenScene; }); return scene; } }