Snake/src/Client/main.cpp

32 lines
739 B
C++
Raw Normal View History

//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
2021-05-27 10:52:30 +03:00
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
2021-06-16 16:10:14 +03:00
#include <Crawl/clientapp.h>
2021-07-03 21:05:03 +03:00
#include <testlvl.h>
2021-05-27 10:52:30 +03:00
int main(int argc, char *argv[])
{
2021-06-10 18:07:04 +03:00
QCoreApplication::setOrganizationName("QuasarApp");
QCoreApplication::setApplicationName("Snake");
2021-05-27 10:52:30 +03:00
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
ClientApp client;
2021-07-03 21:05:03 +03:00
client.registerLevel<TestLvl>();
2021-05-27 10:52:30 +03:00
if (!client.init(&engine)) {
return 1;
}
return app.exec();
}