24 lines
		
	
	
		
			432 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			432 B
		
	
	
	
		
			C++
		
	
	
	
// Copyright (C) 2019 Nomango
 | 
						|
 | 
						|
#include "MainScene.h"
 | 
						|
 | 
						|
int WINAPI wWinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ PWSTR, _In_ int)
 | 
						|
{
 | 
						|
	try
 | 
						|
	{
 | 
						|
		Application app;
 | 
						|
 | 
						|
		Options options(L"Box2D Demo");
 | 
						|
		app.Init(options);
 | 
						|
 | 
						|
		MainScenePtr scene = new MainScene;
 | 
						|
		app.EnterScene(scene);
 | 
						|
		app.Run();
 | 
						|
	}
 | 
						|
	catch (std::exception& e)
 | 
						|
	{
 | 
						|
		::MessageBoxA(nullptr, e.what(), "An exception has occurred!", MB_ICONERROR | MB_OK);
 | 
						|
	}
 | 
						|
	return 0;
 | 
						|
}
 |