diff options
Diffstat (limited to 'game.c')
-rw-r--r-- | game.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -87,7 +87,7 @@ static void menu_deinit(Game* game) { static void gameplay_init(Game* game) { init_world(&game->world); - init_map(&game->world.map); + init_map(&game->world.map, &game->world); init_player(&game->world.player, &game->world); new_skull(&game->world, 0, 0); } @@ -103,6 +103,7 @@ static void gameplay_update(Game* game) { collision_system(&game->world); animation_system(&game->world); render_map(&game->world.map, cx, cy); + update_camera(&game->world.player, &game->world); sprite_system(&game->world); } |