MoonWorksTemplate/src/Program.cs

43 lines
745 B
C#
Raw Permalink Normal View History

2021-04-04 21:01:40 +00:00
using System;
using System.IO;
using System.Runtime.InteropServices;
using MoonWorks;
namespace ProjectName
{
2022-08-30 05:11:51 +00:00
class Program
{
static void Main(string[] args)
{
WindowCreateInfo windowCreateInfo = new WindowCreateInfo
{
WindowWidth = 1280,
WindowHeight = 720,
WindowTitle = "ProjectName",
2023-06-08 18:07:20 +00:00
ScreenMode = ScreenMode.Windowed,
PresentMode = PresentMode.FIFORelaxed
2022-08-30 05:11:51 +00:00
};
2021-04-04 21:01:40 +00:00
2023-06-08 18:07:20 +00:00
FrameLimiterSettings frameLimiterSettings = new FrameLimiterSettings
2022-08-30 05:11:51 +00:00
{
2023-06-08 18:07:20 +00:00
Mode = FrameLimiterMode.Capped,
2022-08-30 05:11:51 +00:00
Cap = 60
};
2021-04-04 21:01:40 +00:00
2023-12-21 23:21:49 +00:00
var debugMode = false;
#if DEBUG
debugMode = true;
#endif
2022-08-30 05:11:51 +00:00
ProjectNameGame game = new ProjectNameGame(
windowCreateInfo,
2023-06-08 18:07:20 +00:00
frameLimiterSettings,
2023-12-21 23:21:49 +00:00
debugMode
2022-08-30 05:11:51 +00:00
);
game.Run();
}
}
}