MoonWorksTemplate/src/Program.cs

37 lines
668 B
C#

using System;
using System.IO;
using System.Runtime.InteropServices;
using MoonWorks;
namespace ProjectName
{
class Program
{
static void Main(string[] args)
{
WindowCreateInfo windowCreateInfo = new WindowCreateInfo
{
WindowWidth = 1280,
WindowHeight = 720,
WindowTitle = "ProjectName",
ScreenMode = ScreenMode.Windowed,
PresentMode = PresentMode.FIFORelaxed
};
FrameLimiterSettings frameLimiterSettings = new FrameLimiterSettings
{
Mode = FrameLimiterMode.Capped,
Cap = 60
};
ProjectNameGame game = new ProjectNameGame(
windowCreateInfo,
frameLimiterSettings,
true
);
game.Run();
}
}
}