diff options
-rw-r--r-- | inc/cub3d_structs.h | 3 | ||||
-rw-r--r-- | src/main.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index f5c295c..7731563 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -49,11 +49,14 @@ typedef struct s_rgb typedef struct s_sprite { + int32_t s_x; + int32_t s_y; int32_t s_h; int32_t s_w; int32_t s_start_x; int32_t s_start_y; int32_t s_tex_y; + double sprite_dist; } t_sprite; typedef struct s_player @@ -15,30 +15,17 @@ #include <cub3d.h> #include <stddef.h> #include <unistd.h> -#include <pthread.h> -#include <stdlib.h> - -void - *ft_zik(void *vargp) -{ - (void)vargp; - system("afplay revelations.mp3"); - return NULL; -} int main(int argc, const char *argv[]) { t_cub *clist; - pthread_t thread_id; if (argc < 2) { ft_dprintf(STDERR_FILENO, "Error\n\033[1;31mNo map selected\n\033[0m"); return (1); } - pthread_create(&thread_id, NULL, ft_zik, NULL); - pthread_join(thread_id, NULL); if (ft_init_cub3d(&clist) < 0) return (2); ft_parse_map(argv[1], clist); |