diff options
| author | Emil Williams | 2026-02-15 04:06:55 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-15 04:06:55 +0000 |
| commit | 0bb3381eefcb645f1abd516e3a6827bad1767406 (patch) | |
| tree | 2cdc418d81c98882c06714c0e658f602676f9409 /source/gamemode.c | |
| parent | 97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03 (diff) | |
| download | Monobomberman-0bb3381eefcb645f1abd516e3a6827bad1767406.tar.xz Monobomberman-0bb3381eefcb645f1abd516e3a6827bad1767406.tar.zst | |
timer pre
Diffstat (limited to 'source/gamemode.c')
| -rw-r--r-- | source/gamemode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gamemode.c b/source/gamemode.c index 9c1055a..d548773 100644 --- a/source/gamemode.c +++ b/source/gamemode.c @@ -14,6 +14,7 @@ void MultiPlayer(game_t * game) { for (i = 0; i < width; ++i) { for (j = 0; j < height; ++j) { game->tiles.state[i][j]._ = rand() % 10 ? IMPASSIBLE_BREAKABLE_WALL : PASSIBLE_NOTHING; + /* game->tiles.state[i][j]._ |= rand() % 3 ? 0 : POWERUP; */ } } @@ -26,13 +27,16 @@ void MultiPlayer(game_t * game) { bzero(game->players.state, sizeof(*game->players.state) * PLAYER_LIMIT); for (i = 0; i < MIN(PLAYER_LIMIT, game->config.player_count); ++i) { - game->players.state[i].bomb_limit = 15; + bzero(&game->players.state[i]._, sizeof(game->players.state[i]._)); + game->players.state[i].bomb_limit = 1; game->players.state[i].power = 2; game->players.state[i].speed = 2; game->players.state[i].alive = 1; game->players.state[i].direction = DOWN; } + game->time_limit = game->config.ups * 60 * 3; + float player_x[4] = {0, (width-1), (width-1), 0 }; float player_y[4] = |
