summaryrefslogtreecommitdiffstats
path: root/main.cpp
blob: 4e872a0ac97f2797961711a70bb0764f49c6c15a (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
28
29
30
#include <QtGui>
#include "mazescene.h"

int main(int argc, char **argv)
{
    QApplication app(argc, argv);
    QPixmapCache::setCacheLimit(100 * 1024); // 100 MB

    const char *map =
        "###&####"
        "#      #"
        "&      #"
        "#      #"
        "# ##?# #"
        "&    # #"
        "# @@   &"
        "# @@ # #"
        "#      #"
        "###&%-##"
        "$      #"
        "#&&&&&&#";

    MazeScene *scene = new MazeScene(map, 8, 12);

    View view;
    view.setScene(scene);
    view.show();

    return app.exec();
}