diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-18 00:08:28 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-18 00:08:28 +0100 |
commit | b50f8d403e36137d6f8dccd847efd4e220f2c505 (patch) | |
tree | 86707ad45c51484d07c62243a0906e3fe8ed7cc7 /src/game.c | |
parent | 4c1f33184f1cba5006b4da8bbe2a161cd971aabc (diff) | |
download | gold-mine-run-b50f8d403e36137d6f8dccd847efd4e220f2c505.tar.gz gold-mine-run-b50f8d403e36137d6f8dccd847efd4e220f2c505.zip |
Enter the player!
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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(); } |