-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphysic.h
More file actions
27 lines (24 loc) · 919 Bytes
/
Copy pathphysic.h
File metadata and controls
27 lines (24 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef PHYSIC_H
#define PHYSIC_H
#include <SDL.h>
#include "constans.h"
#include "objects.h"
#include "list.h"
struct cell{
int in; //Is this cell in the maze?
int up; //Does the wall above this cell exist?
int left;//Does the wall to the left of this cell exist?
int prevx, prevy; //The coordinates of the previous cell, used for backtracking.
};
int check_empty(int x_coor, int y_coor);
int map[15][20];
//int powerup_pos_arrx[MAX_POWERUP];
//int powerup_pos_arry[MAX_POWERUP];
void move_player(struct Player *player);
SDL_Texture* get_map_texture(SDL_Renderer *renderer, int seed);
int map_modify(int seed);
SDL_Texture* get_map_texture_arr(SDL_Renderer *renderer, int arr[15][20]);
void move_bullets(struct node **bullets);
int check_if_player_dies(struct Player *player, struct node **bullets, int *killer);
int check_if_powerup_collect(struct Player *player, struct node **powerup);
#endif