-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
46 lines (36 loc) · 1.11 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
using System;
using System.Security.Cryptography;
using System.Text;
using Bomberman;
using SplashKitSDK;
public class Program
{
public static void Main()
{
int _delay = 5;
Resources LoadResources = new Resources();// need to delete
LoadResources.Load_images();// need to del
Player Bomberman = new Player();
Terrain level1 = new Terrain(Bomberman);
level1.Loadmap("Terrains/Terrain1.txt");
new Window("Bomberman", 800, 550);
do
{
SplashKit.ProcessEvents();
_delay--;
if (_delay == 0)
{
_delay = 30;
level1.E1.Random_Movement(level1);
level1.E2.Random_Movement(level1);
level1.E3.Random_Movement(level1);
level1.E4.Random_Movement(level1);
}
Bomberman.Update(level1);
level1.ResetCoords();
level1.Draw_Map();
Bomberman.Cooldown();
SplashKit.RefreshScreen(30);
} while (!SplashKit.WindowCloseRequested("Bomberman"));
}
}