aboutsummaryrefslogtreecommitdiff
path: root/game.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 09:37:45 +1000
committerquou <quou@disroot.org>2023-05-07 09:37:45 +1000
commit40eb179043b77f011fb1048c386ee187f64569d0 (patch)
treeebae794ec0b3b8851b8c29119ada06555f49d4b6 /game.c
parent47e7976922f5c17505c7c5a3377c3735649e3dcc (diff)
Add waves and some more polish.
Diffstat (limited to 'game.c')
-rw-r--r--game.c7
1 files changed, 4 insertions, 3 deletions
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);