add player moves and test image

This commit is contained in:
Hugo LAMY
2022-03-30 12:55:39 +02:00
parent f645da7885
commit 08f7b89d82
10 changed files with 109 additions and 223 deletions

View File

@@ -6,8 +6,8 @@ t_game *init_game(void)
game = mb_alloc(sizeof(t_game));
// player first position
game->plr_x = 16;
game->plr_y = 16;
game->plr_x = 0;
game->plr_y = 0;
// size window
game->win_size_x = 500;
game->win_size_y = 500;
@@ -26,4 +26,3 @@ t_game *init_game(void)
&(game->sizel), &(game->endian));
return (game);
}