change textures

This commit is contained in:
asus
2024-01-09 15:15:20 +01:00
parent 5505adf02c
commit 70e0c6abfe
16 changed files with 22653 additions and 28 deletions

View File

@@ -18,17 +18,17 @@
*/
/* nbr pixel player move */
# define PLR_MV 5
# define PLR_MV 9
/* degree of rotation of the player per press */
# define PLR_ROT 2
# define PLR_ROT 1
/* nbr key you can press at the same time */
# define MAX_NB_KEY 3
/* nbr of elements to parse in the .cub file (without the map) */
# define TOTAL_ELEMENTS 6
/* screen width */
# define SCREEN_WIDTH 600
# define SCREEN_WIDTH 1200
/* screen height */
# define SCREEN_HEIGHT 500
# define SCREEN_HEIGHT 800
/* screen focal (in degree) */
# define SCREEN_FOCAL 70
/* size of a cell on the map */

View File

@@ -0,0 +1,32 @@
NO textures/fish.xpm
SO textures/fish.xpm
EA textures/fish.xpm
WE textures/fish.xpm
F 66,66,66
C 33,33,33
111111111111111111111111
1......................1
1......................1
1......................1
1.......1......1.1.1...1
1.....1...1............1
1.......1......1...1...1
1.....1...1....E.......1
1.......1......1.1.1...1
1......................1
1......................1
1......................1
1......................1
1......................1
1.......11.............1
1.......11.............1
111111..11............11
11.1....11.............1
11....1.11............11
11.1....11.............1
11.1111111............11
11...................111
1111111111..........1111
111111111111111111111111

View File

@@ -7,26 +7,26 @@ F 66,66,66
C 33,33,33
111111111111111111111111
100000000000000000000001
100000000000000000000001
100000000000000000000001
100000111110000101010001
100000100010000000000001
100000100010000100010001
100000100010000E00000001
100000110110000101010001
100000000000000000000001
100000000000000000000001
100000000000000000000001
100000000000000000000001
100000000000000000000001
100000001100000000000001
100000001100000000000001
111111001100000000000011
110100001100000000000001
110000101100000000000011
110100001100000000000001
110111111100000000000011
110000000000000000000111
111111111100000000001111
1......................1
1......................1
1......................1
1.....11111....1.1.1...1
1.....1...1............1
1.....1...1....1...1...1
1.....1...1....E.......1
1.....11.11....1.1.1...1
1......................1
1......................1
1......................1
1......................1
1......................1
1.......11.............1
1.......11.............1
111111..11............11
11.1....11.............1
11....1.11............11
11.1....11.............1
11.1111111............11
11...................111
1111111111..........1111
111111111111111111111111

View File

@@ -74,7 +74,7 @@ int check_content(t_map *map)
{
if (map->content[y][x] == ' ' && check_spaces(map, y, x))
mb_exit("Error\nInvalid space positions.\n", EXIT_FAILURE);
else if (!ft_strchr(" 01SNWE", map->content[y][x]))
else if (!ft_strchr(" .01SNWE", map->content[y][x]))
mb_exit("Error\nInvalid map characters.\n", EXIT_FAILURE);
else if (ft_strchr("SNWE", map->content[y][x]) \
&& set_player(map, y, x, map->content[y][x]))

View File

@@ -74,6 +74,9 @@ static void fill_row(char *row, char *line, int width)
i = 0;
while (line != NULL && line[i] != '\0' && line[i] != '\n')
{
if (line[i] == '.')
row[i] = '0';
else
row[i] = line[i];
i++;
}

7982
textures/fish.xpm Normal file

File diff suppressed because it is too large Load Diff

14608
textures/tache.xpm Normal file

File diff suppressed because it is too large Load Diff