diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-20 15:52:54 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-20 15:52:54 +0100 |
commit | 667ed9ac9b1e51ef87a5a0bca25566f39f087671 (patch) | |
tree | 1ead85a1eb1559d53ae2fac8d1f2a599c880b46f /game/mainmenu/MainMenuScene.cpp | |
parent | 0ba89eff9283d5f9f59fa763a19f4616f1c66d74 (diff) |
updated cmake and added simple button
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"; } |