From 667ed9ac9b1e51ef87a5a0bca25566f39f087671 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Fri, 20 Dec 2024 15:52:54 +0100 Subject: updated cmake and added simple button --- game/mainmenu/MainMenuScene.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 game/mainmenu/MainMenuScene.cpp (limited to 'game/mainmenu/MainMenuScene.cpp') 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(ivec2{500,500},vec2{500,500},Camera::Data{}); + + ButtonSubScene button; + button.create(*this); +} + +string MainMenuScene::get_name() const { return "mainmenu"; } -- cgit v1.2.3