diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-04-05 20:49:23 +0200 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-04-05 20:49:23 +0200 |
commit | 06b9a5e3c252713c211d77b5643143276db209ba (patch) | |
tree | 8fb96c3086904969207fab1e77e786a916346aa6 /src/game_loop/gameplay.h | |
parent | 30ed47e6ea66872951140711323844698a278fff (diff) | |
parent | 854a80001b9798d1454e4308e4efba96431e44d8 (diff) |
Merge branch 'dev' of https://github.com/heavydemon21/avans-arcade into dev
Diffstat (limited to 'src/game_loop/gameplay.h')
-rw-r--r-- | src/game_loop/gameplay.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game_loop/gameplay.h b/src/game_loop/gameplay.h index d309e78..9d66c37 100644 --- a/src/game_loop/gameplay.h +++ b/src/game_loop/gameplay.h @@ -1,9 +1,13 @@ #pragma once #include "engine/draw_screen.h" +#include "engine/bullet.h" #include "engine/player_controller.h" #include "engine/sprite_controller.h" #include "game_loop/starting_screen.h" #include "engine/level_const.h" +#include "engine/animator.h" +#include "engine/enemy.h" + typedef enum { hh_e_setup_screen, @@ -11,7 +15,9 @@ typedef enum { hh_e_level_complete, hh_e_game_over, }hh_e_gameplay; - +/** @brief resets all the levels the first condition */ void hh_reset_levels(); -void hh_gameplay(hh_g_all_levels, hh_e_game_state*); - +/** @brief game loop function to handle the gameplay*/ +void hh_gameplay(hh_g_all_levels* game, hh_e_game_state* hh_game_state); +/** @brief renders all the entities*/ +void hh_render_all_entities(hh_entity* player, hh_entity* bullets, hh_entity* enemies, int bullet_size, int enemy_size, vec_cor cam_pos); |