blob: b6458b87988fc70b3c399e75f9707fab14a192c3 (
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
|
#include <cstdlib>
#include <crepe/api/Engine.h>
#include <crepe/api/Script.h>
#include "Config.h"
#include "GameScene.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<GameScene>();
gameloop.add_scene<MainMenuScene>();
gameloop.add_scene<ShopMenuScene>();
return gameloop.main();
}
|