aboutsummaryrefslogtreecommitdiff
path: root/game/main.cpp
blob: 751cbe54263efecfb1bb9484ca0bdc124425f2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <cstdlib>

#include <crepe/api/Engine.h>
#include <crepe/api/Script.h>

#include "Config.h"
#include "GameScene.h"
#include "PreviewScene.h"
#include "menus/mainmenu/MainMenuScene.h"
#include "menus/shop/ShopMenuScene.h"

using namespace crepe;

int main() {
	srand(time(NULL));

	Config::get_instance() = ENGINE_CONFIG;

	Engine gameloop;

	gameloop.add_scene<MainMenuScene>();
	gameloop.add_scene<ShopMenuScene>();
	gameloop.add_scene<GameScene>();
	gameloop.add_scene<PreviewScene>();

	return gameloop.main();
}