feat: better floor and walls

This commit is contained in:
mcolonna 2024-04-02 12:51:31 +02:00
parent 45622cf647
commit a00a02e527
9 changed files with 59 additions and 20 deletions

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/11 15:56:31 by mcolonna #+# #+# */
/* Updated: 2024/03/29 15:02:34 by mcolonna ### ########.fr */
/* Updated: 2024/04/02 12:43:24 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,7 +15,7 @@
# include "data_assets.h"
# define NB_SPRITES 8
# define NB_SPRITES 9
typedef enum e_assettype
{
@ -37,7 +37,8 @@ extern const t_spriteinfo g_spritesmap[NB_SPRITES];
typedef enum e_spriteid
{
CASE_WALL,
CASE_FLOOR,
CASE_FLOOR_1,
CASE_FLOOR_2,
SPR_SNAS,
SPR_SNAS_DOWN,
SPR_SNAS_UP,

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/07 23:00:45 by mcolonna #+# #+# */
/* Updated: 2024/03/29 15:44:11 by mcolonna ### ########.fr */
/* Updated: 2024/04/02 12:42:52 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -29,7 +29,6 @@ typedef struct s_room
typedef struct s_roomcase
{
char c;
t_spriteid surface_spr;
t_object_init object;
} t_roomcase;

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/13 16:34:01 by mcolonna #+# #+# */
/* Updated: 2024/03/28 17:54:32 by mcolonna ### ########.fr */
/* Updated: 2024/04/02 12:32:46 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,5 +21,6 @@ void room_getsize(t_memclass mc, t_room *r, t_const_string path);
t_roomcase *getroomcase(t_const_string path, char c);
void moveobject(t_room room, t_point start, t_point move);
bool isinlist(void *addr, t_list list);
void room_patch(t_room *room);
#endif