From 40eb179043b77f011fb1048c386ee187f64569d0 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 09:37:45 +1000 Subject: Add waves and some more polish. --- game.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'game.c') diff --git a/game.c b/game.c index f5edb8a..b68d85a 100644 --- a/game.c +++ b/game.c @@ -45,8 +45,7 @@ static void menu_init(Game* game) { font = get_default_font(); init_menu(&game->menu, game); - menu_add(&game->menu, "New", menu_new, font); - menu_add(&game->menu, "Continue", 0, font); + menu_add(&game->menu, "Play", menu_new, font); menu_add(&game->menu, "Credits", menu_credits, font); menu_add(&game->menu, "Quit", menu_quit, font); } @@ -104,7 +103,7 @@ static void gameplay_init(Game* game) { init_world(&game->world); init_map(&world->map, world); init_player(&world->player, world); - new_skull(world, 0, 0); + init_waver(&world->waver); world->gmemory = gmemory_max; } @@ -174,6 +173,8 @@ static void gameplay_update(Game* game) { world = &game->world; player = &world->player; + update_waver(&world->waver, world); + update_player(player, world); enemy_system(world); debris_system(world); -- cgit v1.2.3-54-g00ecf