diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-06 22:26:55 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-06 22:26:55 +0100 |
commit | bd31dd79eb31b76f3d7276be8dfaff21f615b1da (patch) | |
tree | ef1b4edf40d34b3da3928008ce032f5a05e23c32 /src/types.c | |
parent | acef84852c11b6e154535251d5e3a4ffb3a2cf8f (diff) | |
download | ldjam57-bd31dd79eb31b76f3d7276be8dfaff21f615b1da.tar |
Adds many new levels
Diffstat (limited to 'src/types.c')
-rw-r--r-- | src/types.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.c b/src/types.c index b2f1ee6..bf6dcf4 100644 --- a/src/types.c +++ b/src/types.c @@ -101,8 +101,12 @@ typedef struct { } Button; typedef struct { + // 0 if only 1 blue is needed, 1 if 9 are needed + char need9; + char spawnRate; char grid[GRIDWIDTH * GRIDHEIGHT]; int goalx, goaly; + int spawnerx, spawnery; char placeableCells[MAX_PLACEABLE_CELLS]; // Color } Level; @@ -110,8 +114,13 @@ typedef struct { uint64_t lastTick; char playing; char levelComplete; + // How many blues have reached the end + char blues; + char need9; char grid[GRIDWIDTH * GRIDHEIGHT]; int goalx, goaly; + int spawnerx, spawnery; + int spawnerCount; ButtonState buttonStates[N_BUTTONS]; int currentLevel; char placeableCells[MAX_PLACEABLE_CELLS]; |