mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2026-02-01 19:10:16 +07:00
new scene and game template
This commit is contained in:
@@ -8,24 +8,22 @@ namespace project_name
|
||||
public Game1() : base()
|
||||
{
|
||||
// uncomment this line for scaled pixel art games
|
||||
//Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1");
|
||||
// System.Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1");
|
||||
}
|
||||
|
||||
override protected void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
#if DEBUG
|
||||
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
|
||||
#endif
|
||||
|
||||
Scene = new DefaultScene();
|
||||
|
||||
#if DEBUG
|
||||
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
|
||||
|
||||
// optionally render Nez in an ImGui window
|
||||
var imGuiManager = new ImGuiManager();
|
||||
Core.RegisterGlobalManager(imGuiManager);
|
||||
|
||||
#if DEBUG
|
||||
// optionally load up ImGui DLL if not using the above setup so that its command gets loaded in the DebugConsole
|
||||
//System.Reflection.Assembly.Load("Nez.ImGui")
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user