mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
30 lines
716 B
C#
Executable File
30 lines
716 B
C#
Executable File
using Nez;
|
|
using Nez.ImGuiTools;
|
|
|
|
namespace project_name
|
|
{
|
|
class Game1 : Core
|
|
{
|
|
public Game1() : base()
|
|
{}
|
|
|
|
override protected void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
// uncomment this line for scaled pixel art games
|
|
//Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1");
|
|
|
|
#if DEBUG
|
|
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
|
|
#endif
|
|
|
|
Scene = new DefaultScene();
|
|
|
|
// optionally render Nez in an ImGui window
|
|
var imGuiManager = new ImGuiManager();
|
|
Core.RegisterGlobalManager(imGuiManager);
|
|
}
|
|
}
|
|
}
|