plr orientation at begining

This commit is contained in:
hugogogo
2022-05-04 00:55:47 +02:00
parent eb3b5c37a8
commit 3c76a8646a
13 changed files with 176 additions and 193 deletions

View File

@@ -20,7 +20,7 @@
/* screen focal (in degree) */
# define SCREEN_FOCAL 70
/* size of a cell on the map */
# define CELL 40
# define CELL 100
/*
* keys macro

View File

@@ -71,6 +71,7 @@ void plr_posy_increment(t_game *game, t_plr *plr);
// player_rotates.c
void rotate(t_plr *plr, t_coord *coord);
void rotate_double(t_plr *plr, t_d_coord *coord);
void plr_turn(t_plr *plr, int deg);
void plr_turn_right(t_plr *plr);
void plr_turn_left(t_plr *plr);
// player_limits.c

View File

@@ -125,6 +125,7 @@ typedef struct s_map
int cell;
int plr_x;
int plr_y;
int plr_dir;
} t_map;
/*
@@ -165,13 +166,13 @@ typedef struct s_game
t_map map;
//tmp draw map
// map window
t_win map_win;
t_img map_img;
// rays
int ray_highlight;
int ray_activ;
t_vec ray;
// // map window
// t_win map_win;
// t_img map_img;
// // rays
// int ray_highlight;
// int ray_activ;
// t_vec ray;
// tmp end
// key hook