aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/gameplay.h
blob: 9d66c37d3806f669163465520bdbe3c356ecbcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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,
	hh_e_play_level,
	hh_e_level_complete,
	hh_e_game_over,
}hh_e_gameplay;
/** @brief resets all the levels the first condition */
void hh_reset_levels();
/** @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);