wip several test to avoid buble effects, one wihtout doubles

This commit is contained in:
hugogogo
2022-04-28 20:27:46 +02:00
parent 285f6f3c55
commit 6640c9e6d3
6 changed files with 44 additions and 53 deletions

View File

@@ -17,8 +17,8 @@
# define SCREEN_FOCAL 90
/* size of a cell on the map */
# define CELL 20
/* height of a wall without perpectiv */
# define WALL_HEIGHT 200
/* horizon fr perspectiv */
# define HORIZON 700
/*
* keys macro

View File

@@ -26,27 +26,19 @@ typedef struct s_vec
t_coord end;
} t_vec;
/*
* struct for walls 3d drawing
*/
typedef struct s_wall
{
t_vec pos;
int height;
} t_wall;
/*
* struct with all elements for raycasting
*/
typedef struct s_rcast
{
t_vec screen_dist;
t_vec screen_size;
t_vec ray;
t_vec wall;
int hor;
int screen_width;
int screen_height;
int screen_dist;
int cell;
int cell_x;
int cell_y;
@@ -132,7 +124,6 @@ typedef struct s_game
t_plr plr;
// rays
t_rcast rcast;
t_wall wall;
// map
t_map map;
// map window