-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.cs
46 lines (40 loc) · 891 Bytes
/
Game.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
using System.Windows.Forms;
namespace Digger
{
public static class Game
{
private const string mapWithPlayerTerrain = @"
TTT T
TTP T
T T T
TT TT";
private const string mapWithPlayerTerrainSackGold = @"
PTTGTT TS
TST TSTT
TTTTTTSTT
T TSTS TT
T TTTG ST
TSTSTT TT";
private const string mapWithPlayerTerrainSackGoldMonster = @"
PTTGTT TST
TST TSTTM
TTT TTSTTT
T TSTS TTT
T TTTGMSTS
T TMT M TS
TSTSTTMTTT
S TTST TG
TGST MTTT
T TMTTTT";
public static ICreature[,] Map;
public static int Scores;
public static bool IsOver;
public static Keys KeyPressed;
public static int MapWidth => Map.GetLength(0);
public static int MapHeight => Map.GetLength(1);
public static void CreateMap()
{
Map = CreatureMapCreator.CreateMap(mapWithPlayerTerrainSackGoldMonster);
}
}
}