changed rgb deal, and improve memorybook with 2d
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
/* nbr pixel player move */
|
||||
# define PLR_MV 1
|
||||
# define PLR_MV 2
|
||||
/* degree of rotation of the player per press */
|
||||
# define PLR_ROT 2
|
||||
/* nbr key you can press at the same time */
|
||||
|
||||
@@ -89,8 +89,10 @@ typedef struct s_txt
|
||||
char *txt_south;
|
||||
char *txt_east;
|
||||
char *txt_west;
|
||||
int rgb_floor[3];
|
||||
int rgb_ceiling[3];
|
||||
int rgb_floor;
|
||||
int rgb_ceiling;
|
||||
// int rgb_floor[3];
|
||||
// int rgb_ceiling[3];
|
||||
} t_txt;
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
#ifndef MEMORYBOOK_H
|
||||
# define MEMORYBOOK_H
|
||||
|
||||
// memorybook.c
|
||||
void mb_init(void(*f)(void*), void *param);
|
||||
void *mb_alloc(size_t size);
|
||||
void mb_add(void *addr);
|
||||
void mb_free(void *addr);
|
||||
void mb_exit(char *str);
|
||||
void mb_exit(char *str, int status);
|
||||
|
||||
// memorybook_2d.c
|
||||
void mb_add_2d(void **addr, int nb);
|
||||
void mb_free_2d(void **addr, int nb);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user