blob: 14eec9960aa08e9dabf2653816cdb171fcc495ad (
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
|
#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();
}
|