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(); }
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(); }
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(); }