-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
47 lines (40 loc) · 1.38 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using FNAEngine2D;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices.ComTypes;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
namespace Platformer
{
internal class Program
{
/// <summary>
/// Must be STAThread for the Designer
/// </summary>
[STAThread]
public static void Main()
{
GraphicSettings graphicSettings = new GraphicSettings();
graphicSettings.GameSize = new Point(Constants.INNER_WIDTH, Constants.INNER_HEIGHT);
graphicSettings.NbPixelPerMeter = 60;
graphicSettings.BackgroundColor = Color.Black;
#if DEBUG
GameManager.DevelopmentMode = true;
graphicSettings.IsFullscreen = false;
graphicSettings.ScreenSize = new Point(Constants.INNER_WIDTH * 2, Constants.INNER_HEIGHT * 2);
#else
graphicSettings.IsFullscreen = true;
graphicSettings.ScreenSize = new Point(INNER_WIDTH * 4, INNER_HEIGHT * 4);
#endif
//GameHost.Run(new Win());
//GameHost.Run(new UI.GameOver());
//GameHost.Run(new Test());
//GameHost.Run(new EscapeMenu());
//GameHost.Run(new TestGround());
GameManager.Run(new PlatformerGame(), graphicSettings);
}
}
}