diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 13:09:41 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-27 13:09:41 +0100 |
commit | 7bb6cbe6543ebae891dfd0c495602ca6dfce5a93 (patch) | |
tree | 96300efd34308ca70ecb126f0583a8c7bf50d7b2 | |
parent | Better parse (diff) | |
download | 42-cub3d-7bb6cbe6543ebae891dfd0c495602ca6dfce5a93.tar.gz 42-cub3d-7bb6cbe6543ebae891dfd0c495602ca6dfce5a93.tar.bz2 42-cub3d-7bb6cbe6543ebae891dfd0c495602ca6dfce5a93.tar.xz 42-cub3d-7bb6cbe6543ebae891dfd0c495602ca6dfce5a93.tar.zst 42-cub3d-7bb6cbe6543ebae891dfd0c495602ca6dfce5a93.zip |
Ready to try traps
-rw-r--r-- | map/map_one.cub | 2 | ||||
-rw-r--r-- | src/ft_get_sprite_spawns.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/map/map_one.cub b/map/map_one.cub index 889a693..631a8af 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -1,4 +1,4 @@ -R 1600 1024 +R 1024 768 NO ./media/img/tex/wood_wall_1_small.xpm SO ./media/img/tex/wood_wall_1_small.xpm 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) { |