game image created but all wrong
This commit is contained in:
@@ -63,7 +63,7 @@ int is_wall(t_game *game, int cell_x, int cell_y);
|
||||
// -------------------------------
|
||||
// draw.c
|
||||
void draw_pixel(t_img *img, int x, int y, int color);
|
||||
void draw_line(t_img *img, t_vec vec, int color);
|
||||
void draw_line(t_img *img, t_vec *vec, int color);
|
||||
void draw(t_game *game);
|
||||
// raycast.c
|
||||
void raycast(t_game *game, t_rcast *rcast);
|
||||
|
||||
@@ -35,7 +35,9 @@ typedef struct s_rcast
|
||||
t_vec screen_dist;
|
||||
t_vec screen_size;
|
||||
t_vec ray;
|
||||
int screen_def;
|
||||
t_vec wall;
|
||||
int screen_width;
|
||||
int screen_height;
|
||||
int cell;
|
||||
int cell_x;
|
||||
int cell_y;
|
||||
@@ -53,8 +55,6 @@ typedef struct s_rcast
|
||||
int ray_step_y;
|
||||
int is_x;
|
||||
int ray_nb;
|
||||
int wall_height;
|
||||
int screen_center;
|
||||
double ratio;
|
||||
} t_rcast;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user