aboutsummaryrefslogtreecommitdiff
path: root/game/mainmenu/MainMenuScene.cpp
blob: bc8ea868e441fe47d1b8436ab5ac0f6933e15fa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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(990, 720), vec2(1100, 800),
	Camera::Data{
		.bg_color = Color::RED,
	});
	
	ButtonSubScene button;
	button.create(*this);
}

string MainMenuScene::get_name() const { return "mainmenu"; }