memorybook functionnal, with add

This commit is contained in:
Hugo LAMY
2022-03-25 21:27:24 +01:00
parent 02b5d88ea5
commit f645da7885
9 changed files with 113 additions and 110 deletions

View File

@@ -4,7 +4,7 @@ t_game *init_game(void)
{
t_game *game;
game = gmalloc(sizeof(t_game));
game = mb_alloc(sizeof(t_game));
// player first position
game->plr_x = 16;
game->plr_y = 16;
@@ -13,6 +13,7 @@ t_game *init_game(void)
game->win_size_y = 500;
// init connexion to server
game->mlx_ptr = mlx_init();
mb_add(game->mlx_ptr);
// create the window
game->win_ptr = mlx_new_window(game->mlx_ptr, game->win_size_x,
game->win_size_y, "test");