aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index affcf57..8a92a3c 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -14,6 +14,24 @@
#include <cub3d.h>
#include <stdint.h>
+/*
+** cl->sprite[] index summary
+** --------------------------
+** 0: sprite 2 - tlist[4]
+** 1: sprite 3 - tlist[8]
+** 2: sprite 4 - tlist[9]
+** 3: sprite 5 - tlist[10]
+** 4: sprite 6 - tlist[11]
+** 5: sprite 7 - tlist[12]
+** 6: sprite 8 - tlist[13]
+** 7: sprite 9 - tlist[14]
+** 8: trap - tlist[15]
+** 9: heal - tlist[17]
+** 10: weapon one - tlist[18]
+** 11: weapon two - tlist[19]
+** 12: weapon three - tlist[20]
+*/
+
void
ft_get_next_sprite(t_cub *clist, int s_n, char c, size_t x)
{