MoonWorksTemplate/src/Program.cs

37 lines
668 B
C#
Raw 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
2022-08-30 05:11:51 +00:00
ProjectNameGame game = new ProjectNameGame(
windowCreateInfo,
2023-06-08 18:07:20 +00:00
frameLimiterSettings,
2022-08-30 05:11:51 +00:00
true
);
game.Run();
}
}
}