aboutsummaryrefslogtreecommitdiff
path: root/source/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/main.c')
-rw-r--r--source/main.c8
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;