From b50f8d403e36137d6f8dccd847efd4e220f2c505 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 18 Jun 2023 00:08:28 +0100 Subject: Enter the player! --- src/game.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game.c') 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(); } -- cgit v1.2.3