aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 20:20:38 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 20:20:38 +0100
commitd696def5f207309362efdb0c091d73019f1806ba (patch)
treef95f585571d9933fd058eb50326f6901177ef61f
parentWork in progress, split redone (diff)
download42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.gz
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.bz2
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.xz
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.tar.zst
42-cub3d-d696def5f207309362efdb0c091d73019f1806ba.zip
Nice and working
-rw-r--r--map/map_one.cub12
-rw-r--r--src/ft_get_res.c13
2 files changed, 17 insertions, 8 deletions
diff --git a/map/map_one.cub b/map/map_one.cub
index db3a096..e52aee0 100644
--- a/map/map_one.cub
+++ b/map/map_one.cub
@@ -1 +1,11 @@
-R 1920 1080NO ./path_to_the_north_textureSO ./path_to_the_south_textureWE ./path_to_the_west_textureEA ./path_to_the_east_textureS ./path_to_the_sprite_textureF 220,100,0C 225,30,01 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 \ No newline at end of file
+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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 \ No newline at end of file
diff --git a/src/ft_get_res.c b/src/ft_get_res.c
index ff39280..c610fc1 100644
--- a/src/ft_get_res.c
+++ b/src/ft_get_res.c
@@ -12,12 +12,11 @@ ft_get_res(int fd, t_win *wlist)
get_next_line(fd, &line);
words = ft_split(line, ' ');
i = 0;
- ft_printf("%s\n", line);
- /* while (words) */
- /* { */
- /* ft_printf("[%s] ", words[i]); */
- /* i++; */
- /* } */
- /* ft_printf("\n"); */
+ while (words)
+ {
+ ft_printf("[%s] ", words[i]);
+ i++;
+ }
+ ft_printf("\n");
return (0);
}