diff options
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics.c b/graphics.c new file mode 100644 index 0000000..0720498 --- /dev/null +++ b/graphics.c @@ -0,0 +1,30 @@ +#include "cub3d.h" + +t_state *create_state(t_parsing *parsing) +{ + t_state *state; + + if ((state = (t_state*)malloc(sizeof(t_state))) == NULL) + return (NULL); + state->running = TRUE; + state->pos.x = 8.0; + state->pos.y = 8.0; + state->dir.x = -1.0; + state->dir.y = 0.0; + state->plane.x = 0.0; + state->plane.y = 0.66; + state->map = parsing->map; + return (state); +} + +void update(t_state *state) +{ + + +} + +void draw_column(int x) +{ + + +} |
