dev: reorganize global variables and constants
This commit is contained in:
parent
a395676ee9
commit
5992784dce
26 changed files with 401 additions and 356 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/29 17:43:01 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/19 13:00:28 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/20 13:20:36 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -25,10 +25,8 @@ typedef struct s_assetmeta
|
|||
bool opaque;
|
||||
} t_assetmeta;
|
||||
|
||||
extern const t_assetmeta g_assetsmap[NB_ASSETS];
|
||||
|
||||
/**
|
||||
* Index for each asset. Must be in the same order than g_assetsmap.
|
||||
* Index for each asset. Must be in the same order than g_consts.assetsmap.
|
||||
* The frames of an animation must be together and sorted.
|
||||
* The images of an object with directions must be in this order:
|
||||
* down, up, left, right
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/11 15:56:31 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/04/19 12:59:36 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/04/20 13:24:27 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -32,8 +32,6 @@ typedef struct s_spritemeta
|
|||
int delay_frame;
|
||||
} t_spritemeta;
|
||||
|
||||
extern const t_spritemeta g_spritesmap[NB_SPRITES];
|
||||
|
||||
typedef enum e_spritesmap_id
|
||||
{
|
||||
CASE_BORDER_TOP,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue