diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | .gitmodules | 4 | ||||
| -rw-r--r-- | Makefile | 35 | ||||
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | header.h | 8 | ||||
| m--------- | libft | 0 | ||||
| -rw-r--r-- | main.c | 8 | ||||
| -rw-r--r-- | minimalist.cub | 24 | ||||
| -rw-r--r-- | parse.c | 0 |
9 files changed, 85 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd1c1ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.o +*.ghc +a.out diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e379e18 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "libft"] + path = libft + url = http://github.com/HappyTramp/libft + branch = rendu diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d461a2e --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +LIBFT_PATH = ./libft + +CC = gcc +CCFLAGS = -I$(LIBFT_PATH) -Wall -Wextra #-Werror +LDFLAGS = -L$(LIBFT_PATH) -lft + +NAME = cub3D +SRC = main.c +OBJ = $(SRC:.c=.o) +INCLUDE = header.h + +all: libft_all $(NAME) + +$(NAME): $(OBJ) $(INCLUDE) + $(CC) $(LDFLAGS) -o $@ $(OBJ) + +%.o: %.c + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: libft_clean + rm -f $(OBJ) + +fclean: clean libft_fclean + rm -f $(NAME) + +re: fclean libft_fclean all + +libft_all: + make -C $(LIBFT_PATH) all + +libft_clean: + make -C $(LIBFT_PATH) clean + +libft_fclean: + make -C $(LIBFT_PATH) fclean diff --git a/README.md b/README.md new file mode 100644 index 0000000..8f4659f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# cub3d + +The cub3d project of school 42. diff --git a/header.h b/header.h new file mode 100644 index 0000000..6a35729 --- /dev/null +++ b/header.h @@ -0,0 +1,8 @@ +#ifndef HEADER_H +# define HEADER_H + +# include "libft.h" + + + +#endif diff --git a/libft b/libft new file mode 160000 +Subproject b9a5e7c9ae556988c62dd9efeaf17060ad34bab @@ -0,0 +1,8 @@ +#include "header.h" + +int main(int argc, char **argv) +{ + + + return (0); +} diff --git a/minimalist.cub b/minimalist.cub new file mode 100644 index 0000000..a2a92fe --- /dev/null +++ b/minimalist.cub @@ -0,0 +1,24 @@ +R 1920 1080 +NO ./path_to_the_north_texture +SO ./path_to_the_south_texture +WE ./path_to_the_west_texture +EA ./path_to_the_east_texture + +S ./path_to_the_sprite_texture +F 220,100,0 +C 225,30,0 + +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 +1 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 2 0 0 0 0 0 1 0 0 0 1 +1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 +1 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 +1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 0 1 1 1 1 0 0 0 1 +1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 +1 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 1 1 0 1 0 1 0 0 1 0 0 0 1 +1 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 0 0 0 0 0 0 1 0 0 0 1 +1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 1 +1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 +1 1 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 N 0 1 +1 1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1 1 0 1 1 1 1 0 0 0 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 |
