change: map chars for collectibles K -> C

This commit is contained in:
mcolonna 2024-04-08 16:22:21 +02:00
parent 81a6f3409b
commit 35c3689841
3 changed files with 5 additions and 11 deletions

View file

@ -2,12 +2,6 @@
- Show moves on the screen - Show moves on the screen
- Change sprites for top and bottom borders - Change sprites for top and bottom borders
- ESC to quit (what's the point) - ESC to quit (what's the point)
- Map chars:
- 0 empty
- 1 wall
- C collectible
- E exit
- P snas start position
- Map conditions - Map conditions
- 1 exit - 1 exit
- 1+ collectibles - 1+ collectibles

View file

@ -1,8 +1,8 @@
1111111111111 1111111111111
1000000000001 1000000000001
10K0000000001 10C0000000001
1000011111001 1000011111001
100001P0000K1 100001P0000C1
1KKK111111111 1CCC111111111
10000000000E1 10000000000E1
1111111111111 1111111111111

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */ /* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/13 16:26:28 by mcolonna #+# #+# */ /* Created: 2024/03/13 16:26:28 by mcolonna #+# #+# */
/* Updated: 2024/04/08 15:07:16 by mcolonna ### ########.fr */ /* Updated: 2024/04/08 16:21:01 by mcolonna ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -17,7 +17,7 @@ static t_roomcase g_roomcases[] = {
{c: '0', object: NULL}, {c: '0', object: NULL},
{c: '1', object: wall_init}, {c: '1', object: wall_init},
{c: 'P', object: snas_init}, {c: 'P', object: snas_init},
{c: 'K', object: ketchup_init}, {c: 'C', object: ketchup_init},
{c: 'E', object: exit_init}, {c: 'E', object: exit_init},
{c: '\0'} {c: '\0'}
}; };