add syd sprite

This commit is contained in:
Alexandre POMMIER 2022-06-17 15:57:58 +02:00
parent c34b564b26
commit 8c7597c0b8
6 changed files with 12333 additions and 15 deletions

View File

@ -1,7 +1,10 @@
NO ./sprite/brick_wall.ppm NO ./sprite/magma.ppm
SO ./sprite/brick_wall.ppm SO ./sprite/magma.ppm
EA ./sprite/brick_wall.ppm EA ./sprite/magma.ppm
WE ./sprite/brick_wall.ppm WE ./sprite/magma.ppm
F 210,37,0
C 24,231,27
1111 1111
1001 1001

View File

@ -1,7 +1,10 @@
NO ./sprite/brick_wall.ppm NO ./sprite/magma.ppm
SO ./sprite/brick_wall.ppm SO ./sprite/magma.ppm
EA ./sprite/brick_wall.ppm EA ./sprite/magma.ppm
WE ./sprite/brick_wall.ppm WE ./sprite/magma.ppm
F 210,37,0
C 24,231,27
111111111111111111 111111111111111111
11110000000001111 11110000000001111

View File

@ -1,10 +1,10 @@
NO ./sprite/magma.ppm NO ./sprite/mossy_stone_bricks.ppm
SO ./sprite/stone_bricks.ppm SO ./sprite/stone_bricks.ppm
EA ./sprite/glowstone.ppm EA ./sprite/mossy_cobblestone.ppm
WE ./sprite/obsidian.ppm WE ./sprite/obsidian.ppm
F 220,100,0 F 210,37,0
C 31,38,227 C 24,231,27
1111111111111111111111111 1111111111111111111111111
1000000000110000000000001 1000000000110000000000001

22
map/syd.cub Normal file
View File

@ -0,0 +1,22 @@
NO ./sprite/syd.ppm
SO ./sprite/syd.ppm
EA ./sprite/syd.ppm
WE ./sprite/syd.ppm
F 0,0,0,
C 255,255,255
1111111111111111111111111
1000000000110000000000001
1011000001110000000000001
1001000000000000000000001
111111111011000001110000000000001
100000000011100001110111111111111
11110111111 11011100000010001
11110111111111011101010010001
11000000110101011100000010001
10000000000000001100000010001
10000000000000001101010010001
11000001110101011111011110N0111
11110111 1110101 101111010001
11111111 1111111 111111111111

12290
sprite/syd.ppm Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */ /* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/11 01:00:17 by apommier #+# #+# */ /* Created: 2022/06/11 01:00:17 by apommier #+# #+# */
/* Updated: 2022/06/15 23:38:56 by apommier ### ########.fr */ /* Updated: 2022/06/17 15:55:51 by apommier ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -92,8 +92,8 @@ void set_color(char *str, t_data *img)
c = next_space(str, 0); c = next_space(str, 0);
index = next_space_index(str + 1, 0); index = next_space_index(str + 1, 0);
tab = ft_split(str + index + 1, ','); tab = ft_split(str + index + 1, ',');
if (!tab) if (!tab || double_size(tab) != 3)
quit_game(img); ft_exit("Error\nBad syntax for RGB identifier\n", img);
img->to_be_free.tab_two = tab; img->to_be_free.tab_two = tab;
if (c == 'F') if (c == 'F')
set_color_utils(tab, &img->map.floor, img); set_color_utils(tab, &img->map.floor, img);