wall grows proportionally

This commit is contained in:
hugogogo
2022-04-25 09:13:10 +02:00
parent 03f61d989b
commit 0d9e5879c0
4 changed files with 25 additions and 16 deletions

View File

@@ -17,6 +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 300
/*
* keys macro

View File

@@ -36,6 +36,7 @@ typedef struct s_rcast
t_vec screen_size;
t_vec ray;
t_vec wall;
int wall_height;
int screen_width;
int screen_height;
int cell;