aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/gameplay.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-04-04 15:27:35 +0200
committerGitHub <noreply@github.com>2023-04-04 15:27:35 +0200
commit1771aaa12736b4dbc24419270cf595de6d345969 (patch)
tree8e023b13df43b3aaef5241e59bcbe5c90b1a2f8a /src/game_loop/gameplay.h
parentf47d082d2fb2d5e5b5a4d3e685d8d093699938d7 (diff)
parent854a80001b9798d1454e4308e4efba96431e44d8 (diff)
Merge pull request #52 from heavydemon21/dev
multiple bullets and bg collisions.
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);