FNA-VSCode-Template/project_name/Game1.cs
foxnne 3e5a7e6a78 Nearly finalized, added back all the osx compatibility.
Hopefully this now works with both OSX and Windows... I tried to create platform specific properties everywhere I could. All Windows build tasks for VSCode seem to be working correctly now.
2019-09-02 17:49:21 -05:00

28 lines
591 B
C#

using Nez;
using Nez.ImGuiTools;
namespace project_name
{
class Game1 : Core
{
public Game1() : base()
{}
override protected void Initialize()
{
base.Initialize();
#if DEBUG
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
// render Nez in the imgui window in debug mode
var imGuiManager = new ImGuiManager();
Core.registerGlobalManager(imGuiManager);
#endif
scene = new DefaultScene();
}
}
}