diff options
Diffstat (limited to 'game/mainmenu/MainMenuScene.cpp')
-rw-r--r-- | game/mainmenu/MainMenuScene.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/game/mainmenu/MainMenuScene.cpp b/game/mainmenu/MainMenuScene.cpp new file mode 100644 index 0000000..013eb2b --- /dev/null +++ b/game/mainmenu/MainMenuScene.cpp @@ -0,0 +1,17 @@ + +#include "MainMenuScene.h" +#include "ButtonSubScene.h" +#include "api/Camera.h" + +using namespace crepe; +using namespace std; + +void MainMenuScene::load_scene(){ + GameObject camera_object = this->new_object("camera"); + camera_object.add_component<Camera>(ivec2{500,500},vec2{500,500},Camera::Data{}); + + ButtonSubScene button; + button.create(*this); +} + +string MainMenuScene::get_name() const { return "mainmenu"; } |