plr orientation at begining
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user