-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
34 lines (28 loc) · 793 Bytes
/
Program.cs
File metadata and controls
34 lines (28 loc) · 793 Bytes
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
using DungeonCrawl.DAO;
using DungeonCrawl.Maps;
using DungeonCrawl.Ui;
using SadConsole;
using SadConsole.Configuration;
namespace DungeonCrawl;
/// <summary>
/// Class <c>Program</c> provides an entry point for the game.
/// </summary>
public static class Program
{
private const int ViewPortWidth = 200;
private const int ViewPortHeight = 60;
/// <summary>
/// The entry point of the program.
/// </summary>
public static void Main()
{
Builder startup = new Builder()
.SetScreenSize(ViewPortWidth, ViewPortHeight)
.SetStartingScreen<RootScreen>()
.ConfigureFonts(true)
.IsStartingScreenFocused(true);
Game.Create(startup);
Game.Instance.Run();
Game.Instance.Dispose();
}
}