aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: d8cb0265b4c68eeaff0ca40069f618a0b384fc3c (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 "game.h"
#include "titlescreen.h"
#include "pausescreen.h"

#include "boxii/boxii.h"

int
main(int argc, char **argv)
{
    (void)argc;
    (void)argv;

    Boxii::setup();
    Game::init();

    Game::addScreen("title", std::make_shared<TitleScreen>());
    Game::addScreen("pause", std::make_shared<PauseScreen>());

    Game::pushScreen("title");

    Game::loop();

    return 0;
}