From bd31dd79eb31b76f3d7276be8dfaff21f615b1da Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Sun, 6 Apr 2025 22:26:55 +0100 Subject: Adds many new levels --- src/types.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/types.c') 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]; -- cgit v1.2.3