aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuScene.cpp
blob: 013eb2bb5a9ae0322610408a086645d1df5386c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"; }