diff options
Diffstat (limited to 'game.h')
-rw-r--r-- | game.h | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -0,0 +1,43 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* game.h :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2022/10/09 07:29:21 by kdx #+# #+# */ +/* Updated: 2022/10/16 01:44:41 by kdx ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#ifndef GAME_H +# define GAME_H +# include "sprite.h" +# include "spritesheet.h" +# include "sily.h" +# include "player.h" +# include "badeline.h" +# include "map.h" + +typedef struct s_game +{ + t_sily *sily; + t_player player; + t_badeline badeline; + t_map map; + t_sprite *s_player; + t_sprite *s_badeline; + t_sprite *s_tiles[256]; + t_spritesheet *ss_exit; + int redraw; + int x; + int y; + size_t collectibles; + int victory; +} t_game; + +t_game *game_new(const char *map_path); +void *game_destroy(t_game *game); +void game_draw(t_game *game); + +#endif |