add player moves and test image

This commit is contained in:
Hugo LAMY
2022-03-30 12:55:39 +02:00
parent f645da7885
commit 00b3612c16
11 changed files with 109 additions and 236 deletions

View File

@@ -26,7 +26,7 @@ void init_parsing(int ac, char **av, t_game *game);
// -------------------------------
// SRC/HOOK
// -------------------------------
// key_hook.c
// keyhook.c
int keypress(int keycode, t_game *game);
int keyrelease(int keycode, t_game *game);
// key_do_action.c
@@ -44,5 +44,12 @@ int is_go_backward(int *k_hook);
// -------------------------------
// draw.c
void draw(t_game *game);
// player_moves.c
void plr_posx_decrement(t_game *game);
void plr_posy_decrement(t_game *game);
void plr_posx_increment(t_game *game);
void plr_posy_increment(t_game *game);
// player_limits.c
void plr_limits(t_game *game, int x, int y);
#endif