2019-02-03 22:38:39 +08:00
|
|
|
// Copyright (C) 2019 Nomango
|
|
|
|
|
|
2019-03-14 17:55:06 +08:00
|
|
|
#include "MainScene.h"
|
2019-02-03 22:38:39 +08:00
|
|
|
|
2019-03-14 17:55:06 +08:00
|
|
|
int WINAPI wWinMain(HINSTANCE, HINSTANCE, PWSTR, int)
|
2019-02-03 22:38:39 +08:00
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
Application app;
|
2019-03-12 00:27:54 +08:00
|
|
|
|
|
|
|
|
Options options(L"Box2D Demo");
|
|
|
|
|
app.Init(options);
|
2019-02-03 22:38:39 +08:00
|
|
|
|
2019-03-14 17:55:06 +08:00
|
|
|
MainScenePtr scene = new MainScene;
|
2019-02-03 22:38:39 +08:00
|
|
|
app.EnterScene(scene);
|
|
|
|
|
app.Run();
|
|
|
|
|
}
|
|
|
|
|
catch (std::exception& e)
|
|
|
|
|
{
|
2019-03-10 13:44:02 +08:00
|
|
|
::MessageBoxA(nullptr, e.what(), "An exception has occurred!", MB_ICONERROR | MB_OK);
|
2019-02-03 22:38:39 +08:00
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|