-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
38 lines (30 loc) · 752 Bytes
/
Program.cs
File metadata and controls
38 lines (30 loc) · 752 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
35
36
37
38
using System.Numerics;
using Raylib_cs;
using static Raylib_cs.Raylib;
namespace GOL;
class Program {
static void Main(string[] args) {
////
// Setup
// var WindowSize = new Vector2i(1920, 1080);
var WindowSize = new Vector2i(1280, 720);
InitWindow(WindowSize.X, WindowSize.Y, "Game of Life");
SetTargetFPS(99999);
var Matrix = new Matrix(WindowSize);
////
// Main Loop
while (!WindowShouldClose()) {
////
// Update
Matrix.Update();
////
// Draw
BeginDrawing();
Matrix.Draw();
EndDrawing();
}
////
// Exit
CloseWindow();
}
}