Wave incrementing

This commit is contained in:
2024-02-11 19:23:40 +01:00
parent 0319a0a5b3
commit bfc1bc425f
7 changed files with 73 additions and 10 deletions

View File

@@ -268,6 +268,9 @@ void loadMap(Game *game, const char *path) {
game->camera.rotation = 0.0f;
game->camera.zoom = 3.0f;
bzMemSet(game->playerResources, 0, sizeof(*game->playerResources));
game->waveInfo = getWaveInfo(0);
bzTileMapAddLayerCollisions(&game->map, LAYER_TERRAIN, COLL_LAYER_TERRAIN);
bzTileMapOverrideLayer(&game->map, LAYER_TREES, initTreesLayer);