blob: 490eda2015152ab4952a63355370ac71072a2873 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
|