From 3ad8aa9e66f7e159b175a9a52e5ad00bbfd90734 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 20 May 2024 20:30:41 +0200 Subject: Add collectibles Exit now only works after collecting everything. I don't really like my current solution, but it works for now. --- src/map_utils.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map_utils.c') diff --git a/src/map_utils.c b/src/map_utils.c index 6d8fbd9..a03a1e0 100644 --- a/src/map_utils.c +++ b/src/map_utils.c @@ -6,7 +6,7 @@ /* By: dkaiser tiles[y * map->grid_size.x + x]); } + +void set_tile(t_tilemap *map, int x, int y, enum e_tile type) +{ + map->tiles[y * map->grid_size.x + x] = type; +} -- cgit v1.2.3