コード例 #1
0
int main(int argc, char **argv)
{
    Q_INIT_RESOURCE(portedasteroids);

    QApplication app(argc, argv);

    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
    
    KAstTopLevel topLevel;
    topLevel.setWindowTitle("Ported Asteroids Game");
    topLevel.show();

    app.setQuitOnLastWindowClosed(true);
    return app.exec();
}
コード例 #2
0
ファイル: main.cpp プロジェクト: qwerty123412/qbombic
int main(int argc, char **argv)
{
    GameUIConstants::setBaseDir(QDir::currentPath() + "/");
    Q_INIT_RESOURCE(portedasteroids);

    QApplication app(argc, argv);

    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
    
    KAstTopLevel topLevel;
    topLevel.setWindowTitle("Bombitch");
    topLevel.show();

    app.setQuitOnLastWindowClosed(true);
    return app.exec();
}
コード例 #3
0
int emscriptenQtSDLMain(int argc, char *argv[])
#endif
{
    Q_INIT_RESOURCE(portedasteroids);

    QApplication *app = new QApplication(argc, argv);

    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
    
    KAstTopLevel *topLevel = new KAstTopLevel;
    topLevel->setWindowTitle("Ported Asteroids Game");
#if defined(Q_OS_SYMBIAN)
    topLevel->showFullScreen();
#else
    topLevel->show();
#endif

    app->setQuitOnLastWindowClosed(true);
    return app->exec();
}