diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-06 18:53:05 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2025-04-06 18:53:05 +0100 |
commit | 7064baa135947cb0321db111ad510ba832966d68 (patch) | |
tree | 824ec2a4c73778831408049d930226ee0737aa01 /src/tick.c | |
parent | 133d07d5e7781c86cc11cd86e80ad1ff5325fc36 (diff) | |
download | ldjam57-7064baa135947cb0321db111ad510ba832966d68.tar |
only allow placing stuff available in the level
Diffstat (limited to 'src/tick.c')
-rw-r--r-- | src/tick.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |