diff options
| author | Emil Williams | 2026-02-01 12:07:18 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-01 12:07:18 +0000 |
| commit | a5209153cf8df1cd58c2f70f9eabb0bf5dd071f8 (patch) | |
| tree | 1926b2f597868e371b6c2369c9445df1fdc49cfc /source/main.c | |
| parent | f7973d58b2eb298bffe0ad3f88897e02e0497de8 (diff) | |
| download | EUROPAXI-a5209153cf8df1cd58c2f70f9eabb0bf5dd071f8.tar.xz EUROPAXI-a5209153cf8df1cd58c2f70f9eabb0bf5dd071f8.tar.zst | |
Diffstat (limited to 'source/main.c')
| -rw-r--r-- | source/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/main.c b/source/main.c index 1cf3c55..c775851 100644 --- a/source/main.c +++ b/source/main.c @@ -29,7 +29,8 @@ int main (int count, char ** arguments) InitAudioDevice(); SetWindowPosition(0, 0); } - game->font = GetFontDefault(); + game->font = LoadFont("fonts/Atkinson/mono/AtkinsonHyperlegibleMono-Bold.otf"); + if (!IsFontValid(game->font)) { game->font = GetFontDefault(); } /* :todo ping me I'll update this to a u/f seperated game loop */ { /* loop to end all loops */ @@ -41,6 +42,8 @@ int main (int count, char ** arguments) clock_gettime(CLOCK_MONOTONIC, &start); ClearWindowState(FLAG_WINDOW_HIDDEN); + int test[200*200] = {0}; + for (int i = 0; i < 200*200; i++) { test[i] = i;} while (1) { if (delta > wait) { clock_gettime(CLOCK_MONOTONIC, &start); @@ -62,7 +65,7 @@ int main (int count, char ** arguments) { /* draw */ BeginDrawing(); ClearBackground(BLACK); - draw_square_grid(game, 0, 50, NULL, (int[]) {1,2,3, 4,5,6, 7,8,9}, 9); + draw_square_grid(game, 0, MIN(game->vertical/20, game->horizontal/25), NULL, test, 200); draw_centered_text(game, 1, 20, WHITE, "Snails are now preparing!"); draw_centered_text(game, 2, 20, WHITE, "Gambling here"); rlDrawRenderBatchActive(); @@ -79,6 +82,7 @@ int main (int count, char ** arguments) } stop: SetWindowState(FLAG_WINDOW_HIDDEN); + UnloadFont(game->font); CloseAudioDevice(); CloseWindow(); return 0; |
