diff options
author | quou <quou@disroot.org> | 2023-05-07 09:37:45 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 09:37:45 +1000 |
commit | 40eb179043b77f011fb1048c386ee187f64569d0 (patch) | |
tree | ebae794ec0b3b8851b8c29119ada06555f49d4b6 /game.c | |
parent | 47e7976922f5c17505c7c5a3377c3735649e3dcc (diff) |
Add waves and some more polish.
Diffstat (limited to 'game.c')
-rw-r--r-- | game.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |