-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
50 lines (39 loc) · 1.17 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
48
49
50
using CSE210_06_Final_Project;
using generalNamespace;
using Raylib_cs;
using static Raylib_cs.Raylib;
internal class Program
{
private static void Main(string[] args)
{
bool loadinstructions = false;
Raylib.InitWindow(VideoService.scrnWidth, VideoService.scrnHeight, "JUSTICE");
Image iconImage = LoadImage("Game/Images/ship/startship.png");
Raylib.SetWindowIcon(iconImage);
while (!Raylib.WindowShouldClose()) // Detect window close button or ESC key
{
if (loadinstructions)
{
instructions.loadScreen();
}
else
{
loadScreenVisual.loadScreen();
}
if(Raylib.IsKeyDown(KeyboardKey.KEY_I)){
loadinstructions = true;
}
if(Raylib.IsKeyDown(KeyboardKey.KEY_BACKSPACE)){
loadinstructions = false;
}
if(Raylib.IsKeyDown(KeyboardKey.KEY_R)) break;
}
var director = new Director();
director.StartGame();
// GameLoop();
}
public void GameLoop()
{
// GameLoop();
}
}