aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/gameplay.h
diff options
context:
space:
mode:
authorUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
committerUnavailableDev <ggwildplay@gmail.com>2023-04-05 20:49:23 +0200
commit06b9a5e3c252713c211d77b5643143276db209ba (patch)
tree8fb96c3086904969207fab1e77e786a916346aa6 /src/game_loop/gameplay.h
parent30ed47e6ea66872951140711323844698a278fff (diff)
parent854a80001b9798d1454e4308e4efba96431e44d8 (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.h12
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);