-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
59 lines (40 loc) · 1.15 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
51
52
53
54
55
56
57
58
59
using Raylib_cs;
using static Raylib_cs.Raylib;
using static Raylib_cs.TraceLogLevel;
namespace DotMatrix;
class Program {
static void Main(string[] args) {
////
// Init
SetTraceLogLevel(LOG_WARNING | LOG_ERROR | LOG_FATAL);
InitWindow(Global.WindowSize.X, Global.WindowSize.Y, $"{Global.WindowTitle} {Global.VersionString}");
SetExitKey(KeyboardKey.KEY_NULL);
SetTargetFPS(144);
var DefaultColor = new Color(34, 35, 35, 255);
////
// Setup
Atlas.Initialize();
var Engine = new Engine(Global.WindowSize, Global.MatrixScale);
////
// Loop
while (!WindowShouldClose()) {
////
// Update
Engine.Update();
////
// Draw
BeginDrawing();
ClearBackground(DefaultColor);
Engine.Draw();
EndDrawing();
////
// Exit Check
if (Engine.ShouldExit)
break;
}
////
// Exit
Engine.Pepper.Log("Program exited successfully", LogType.SYSTEM);
CloseWindow();
}
}