Wall orientation and see through wall
14
assets/maps/map.cub
Normal file → Executable file
@@ -1,14 +1,14 @@
|
||||
NO assets/textures/backRoom3.png
|
||||
SO assets/textures/backRoom3.png
|
||||
WE assets/textures/backRoom3.png
|
||||
EA assets/textures/backRoom3.png
|
||||
NO assets/textures/forest.png
|
||||
SO assets/textures/forest.png
|
||||
WE assets/textures/forest.png
|
||||
EA assets/textures/forest.png
|
||||
|
||||
C 164,157,79
|
||||
F 30,55,55
|
||||
|
||||
11111111111111111111111111111
|
||||
10000000001100000000000000001
|
||||
10110000011100000010000010001
|
||||
11111111111111111111111111111 111
|
||||
10000000001100000000000000001 101
|
||||
10110000011100000010000010001 111
|
||||
10010000000000000000000010001
|
||||
10110000011100000010000010001
|
||||
10000000001100000111011110001
|
||||
|
||||
8
assets/maps/map2.cub
Normal file → Executable file
@@ -1,15 +1,15 @@
|
||||
NO assets/textures/backRoom3.png
|
||||
SO assets/textures/backRoom3.png
|
||||
WE assets/textures/backRoom3.png
|
||||
EAS assets/textures/backRoom3.png
|
||||
EA assets/textures/backRoom3.png
|
||||
|
||||
C 164,157,79
|
||||
F 30,55,55
|
||||
|
||||
11111111111111111111111111
|
||||
111111111111111111111111111
|
||||
100000000011100000000000001
|
||||
10110000011 110000000000001
|
||||
100100000001000000N0000011
|
||||
10110000011 110000000000N01
|
||||
10010000000100000000000011
|
||||
111111111011000001110000000000001
|
||||
100000000011000001110111110111111
|
||||
11110111111111011100000010001
|
||||
|
||||
0
assets/textures/backRoom3.png
Normal file → Executable file
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
BIN
assets/textures/forest.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
assets/textures/hola.png
Executable file
|
After Width: | Height: | Size: 5.2 KiB |
11
includes/cub3d.h
Normal file → Executable file
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/25 19:47:02 by aortigos #+# #+# */
|
||||
/* Updated: 2026/01/25 14:30:55 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/01/25 15:48:40 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -26,12 +26,13 @@
|
||||
# include "../lib/gnl/get_next_line.h"
|
||||
|
||||
|
||||
# define S_W 1900
|
||||
# define S_H 1000
|
||||
# define WALL_SIZE 30
|
||||
# define S_W 1920
|
||||
# define S_H 1080
|
||||
# define WALL_SIZE 64
|
||||
# define FOV 60
|
||||
# define ROTATION_SPEED 0.045
|
||||
# define PLAYER_SPEED 3
|
||||
# define PLAYER_SPEED 6
|
||||
# define COLLISION_MARGIN 1
|
||||
|
||||
# define ERR_INV_COP "Error: invalid argument\n"
|
||||
# define ERR_INV_FILE "Error: invalid file\n"
|
||||
|
||||
0
lib/ft_printf/Makefile
Normal file → Executable file
0
lib/ft_printf/ft_basic.c
Normal file → Executable file
0
lib/ft_printf/ft_hexadecimal.c
Normal file → Executable file
0
lib/ft_printf/ft_pointer.c
Normal file → Executable file
0
lib/ft_printf/ft_printf.c
Normal file → Executable file
0
lib/ft_printf/ft_printf.h
Normal file → Executable file
0
lib/gnl/Makefile
Normal file → Executable file
0
lib/gnl/get_next_line.c
Normal file → Executable file
0
lib/gnl/get_next_line.h
Normal file → Executable file
0
lib/gnl/get_next_line_utils.c
Normal file → Executable file
0
lib/libft/Makefile
Normal file → Executable file
0
lib/libft/ft_array.c
Normal file → Executable file
0
lib/libft/ft_atof.c
Normal file → Executable file
0
lib/libft/ft_atoi.c
Normal file → Executable file
0
lib/libft/ft_bzero.c
Normal file → Executable file
0
lib/libft/ft_calloc.c
Normal file → Executable file
0
lib/libft/ft_iabs.c
Normal file → Executable file
0
lib/libft/ft_isalnum.c
Normal file → Executable file
0
lib/libft/ft_isalpha.c
Normal file → Executable file
0
lib/libft/ft_isascii.c
Normal file → Executable file
0
lib/libft/ft_isdigit.c
Normal file → Executable file
0
lib/libft/ft_isprint.c
Normal file → Executable file
0
lib/libft/ft_issign.c
Normal file → Executable file
0
lib/libft/ft_isspace.c
Normal file → Executable file
0
lib/libft/ft_itoa.c
Normal file → Executable file
0
lib/libft/ft_itoa_base.c
Normal file → Executable file
0
lib/libft/ft_lstadd_back_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstadd_front_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstclear_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstdelone_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstiter_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstlast_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstmap_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstnew_bonus.c
Normal file → Executable file
0
lib/libft/ft_lstsize_bonus.c
Normal file → Executable file
0
lib/libft/ft_ltoa.c
Normal file → Executable file
0
lib/libft/ft_memchr.c
Normal file → Executable file
0
lib/libft/ft_memcmp.c
Normal file → Executable file
0
lib/libft/ft_memcpy.c
Normal file → Executable file
0
lib/libft/ft_memfree.c
Normal file → Executable file
0
lib/libft/ft_memfree_all.c
Normal file → Executable file
0
lib/libft/ft_memmove.c
Normal file → Executable file
0
lib/libft/ft_memset.c
Normal file → Executable file
0
lib/libft/ft_putchar_fd.c
Normal file → Executable file
0
lib/libft/ft_putendl_fd.c
Normal file → Executable file
0
lib/libft/ft_putnbr_fd.c
Normal file → Executable file
0
lib/libft/ft_putstr_fd.c
Normal file → Executable file
0
lib/libft/ft_split.c
Normal file → Executable file
0
lib/libft/ft_strchr.c
Normal file → Executable file
0
lib/libft/ft_strcmp.c
Normal file → Executable file
0
lib/libft/ft_strdup.c
Normal file → Executable file
0
lib/libft/ft_striteri.c
Normal file → Executable file
0
lib/libft/ft_strjoin.c
Normal file → Executable file
0
lib/libft/ft_strlcat.c
Normal file → Executable file
0
lib/libft/ft_strlcpy.c
Normal file → Executable file
0
lib/libft/ft_strlen.c
Normal file → Executable file
0
lib/libft/ft_strmapi.c
Normal file → Executable file
0
lib/libft/ft_strncmp.c
Normal file → Executable file
0
lib/libft/ft_strnstr.c
Normal file → Executable file
0
lib/libft/ft_strrchr.c
Normal file → Executable file
0
lib/libft/ft_strtrim.c
Normal file → Executable file
0
lib/libft/ft_substr.c
Normal file → Executable file
0
lib/libft/ft_tolower.c
Normal file → Executable file
0
lib/libft/ft_toupper.c
Normal file → Executable file
0
lib/libft/libft.h
Normal file → Executable file
0
lib/mlx/.editorconfig
Normal file → Executable file
0
lib/mlx/.gitattributes
vendored
Normal file → Executable file
0
lib/mlx/.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file → Executable file
0
lib/mlx/.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file → Executable file
0
lib/mlx/.github/workflows/ci.yml
vendored
Normal file → Executable file
0
lib/mlx/.github/workflows/wasm.yml
vendored
Normal file → Executable file
0
lib/mlx/.gitignore
vendored
Normal file → Executable file
0
lib/mlx/CMakeLists.txt
Normal file → Executable file
0
lib/mlx/CODE_OF_CONDUCT.md
Normal file → Executable file
0
lib/mlx/CONTRIBUTING.md
Normal file → Executable file
0
lib/mlx/LICENSE
Normal file → Executable file
0
lib/mlx/README.md
Normal file → Executable file
0
lib/mlx/SECURITY.md
Normal file → Executable file
0
lib/mlx/cmake/Findglfw3.cmake
Normal file → Executable file
0
lib/mlx/cmake/LinkGLFW.cmake
Normal file → Executable file
0
lib/mlx/docs/42.md
Normal file → Executable file
0
lib/mlx/docs/Basics.md
Normal file → Executable file
0
lib/mlx/docs/Colors.md
Normal file → Executable file
0
lib/mlx/docs/Functions.md
Normal file → Executable file
0
lib/mlx/docs/Hooks.md
Normal file → Executable file
0
lib/mlx/docs/Images.md
Normal file → Executable file
0
lib/mlx/docs/Input.md
Normal file → Executable file
0
lib/mlx/docs/Shaders.md
Normal file → Executable file
0
lib/mlx/docs/Textures.md
Normal file → Executable file
0
lib/mlx/docs/XPM42.md
Normal file → Executable file
0
lib/mlx/docs/assets/demo.gif
Normal file → Executable file
|
Before Width: | Height: | Size: 4.7 MiB After Width: | Height: | Size: 4.7 MiB |
0
lib/mlx/docs/assets/logo.png
Normal file → Executable file
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
0
lib/mlx/docs/assets/python.png
Normal file → Executable file
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |