Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/tick.c
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2025-04-06 18:53:05 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2025-04-06 18:53:05 +0100
commit7064baa135947cb0321db111ad510ba832966d68 (patch)
tree824ec2a4c73778831408049d930226ee0737aa01 /src/tick.c
parent133d07d5e7781c86cc11cd86e80ad1ff5325fc36 (diff)
downloadldjam57-7064baa135947cb0321db111ad510ba832966d68.tar
only allow placing stuff available in the level
Diffstat (limited to 'src/tick.c')
-rw-r--r--src/tick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tick.c b/src/tick.c
index e351155..a15c1cb 100644
--- a/src/tick.c
+++ b/src/tick.c
@@ -341,8 +341,8 @@ static void tick(Game *game, Arena a) {
}
}
- if (isBlue(game->state.grid[game->state.goalx + game->state.goaly * GRIDWIDTH])) {
- // TODO: Win conditions
+ if (game->state.grid[game->state.goalx + game->state.goaly * GRIDWIDTH] == BLUE) {
+ game->state.levelComplete = 1;
}
}