feat: add walk animations *

also fix walk animation displaying
This commit is contained in:
mcolonna 2024-04-04 17:13:19 +02:00
parent 92fbb27f18
commit 6ad613d4bb
31 changed files with 6649 additions and 26 deletions

View file

@ -6,14 +6,14 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/29 17:43:01 by mcolonna #+# #+# */
/* Updated: 2024/04/02 17:27:46 by mcolonna ### ########.fr */
/* Updated: 2024/04/05 18:43:19 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef DATA_ASSETS_H
# define DATA_ASSETS_H
# define NB_ASSETS 36
# define NB_ASSETS 48
typedef struct s_assetmeta
{
@ -43,6 +43,18 @@ typedef enum e_assetsmap_id
OBJECT_SNAS_UP,
OBJECT_SNAS_LEFT,
OBJECT_SNAS_RIGHT,
OBJECT_SNAS_WALK_DOWN_1,
OBJECT_SNAS_WALK_DOWN_2,
OBJECT_SNAS_WALK_DOWN_3,
OBJECT_SNAS_WALK_DOWN_4,
OBJECT_SNAS_WALK_RIGHT_1,
OBJECT_SNAS_WALK_RIGHT_2,
OBJECT_SNAS_WALK_LEFT_1,
OBJECT_SNAS_WALK_LEFT_2,
OBJECT_SNAS_WALK_UP_1,
OBJECT_SNAS_WALK_UP_2,
OBJECT_SNAS_WALK_UP_3,
OBJECT_SNAS_WALK_UP_4,
OBJECT_FIRSK_DOWN,
OBJECT_FIRST_UP,
OBJECT_FIRST_LEFT,

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/11 15:56:31 by mcolonna #+# #+# */
/* Updated: 2024/04/03 15:53:40 by mcolonna ### ########.fr */
/* Updated: 2024/04/05 18:01:55 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */
@ -40,10 +40,10 @@ typedef enum e_spritesmap_id
CASE_FLOOR_1,
CASE_FLOOR_2,
SPR_SNAS,
SPR_SNAS_DOWN,
SPR_SNAS_UP,
SPR_SNAS_LEFT,
SPR_SNAS_RIGHT,
SPR_SNAS_WALK_DOWN,
SPR_SNAS_WALK_UP,
SPR_SNAS_WALK_RIGHT,
SPR_SNAS_WALK_LEFT,
SPR_WALL,
SPR_KETCHUP,
SPR_KETCHUP_FADE,

View file

@ -6,7 +6,7 @@
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
/* Updated: 2024/04/03 16:06:13 by mcolonna ### ########.fr */
/* Updated: 2024/04/05 16:31:40 by mcolonna ### ########.fr */
/* */
/* ************************************************************************** */