-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
44 lines (42 loc) · 1.07 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
using System;
using System.Drawing;
using BlackCoat;
using SFML.Window;
namespace DreamAwake
{
static class Program
{
[STAThread]
static void Main()
{
#if !DEBUG
var launcher = new Launcher()
{
BannerImage = Image.FromFile("Assets\\Bananner.png"),
Text = Game.TITLE
};
var device = Device.Create(launcher, Game.TITLE);
if (device == null) return;
#endif
#if DEBUG
var vm = new VideoMode(800, 600);
var device = Device.Create(vm, Game.TITLE, Styles.Default, 0, false, 120);
#endif
using (var core = new Core(device))
{
#if DEBUG
core.Debug = true;
#endif
// Setup Scene / Level Management
Game.Core = core;
#if !DEBUG
core.SceneManager.ChangeScene(new BlackCoatIntro(core, new MainMenuScene(core)));
#endif
#if DEBUG
core.SceneManager.ChangeScene(new MainMenuScene(core));
#endif
core.Run();
}
}
}
}