aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-18 00:08:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-18 00:08:28 +0100
commitb50f8d403e36137d6f8dccd847efd4e220f2c505 (patch)
tree86707ad45c51484d07c62243a0906e3fe8ed7cc7 /src/game.c
parent4c1f33184f1cba5006b4da8bbe2a161cd971aabc (diff)
downloadgold-mine-run-b50f8d403e36137d6f8dccd847efd4e220f2c505.tar.gz
gold-mine-run-b50f8d403e36137d6f8dccd847efd4e220f2c505.zip
Enter the player!
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index bde5036..b39b0ca 100644
--- a/src/game.c
+++ b/src/game.c
@@ -8,6 +8,8 @@
#include "data.h"
#include "timer.h"
+#include "player.h"
+
#include "game.h"
static uint32_t hiscore = 15000;
@@ -78,6 +80,9 @@ void run_game()
map_init(binary_stage_start);
map_render();
+ player_init(16, 128);
+ player_draw();
+
timer_start(GAME_TIME_MAX, &clock_updated);
while (!keys[KEY_ESC])
@@ -91,6 +96,12 @@ void run_game()
if (hud)
hud_render();
+ player_erase();
+
+ player_update();
+
+ player_draw();
+
wait_vsync();
blit_update();
}