1#ifndef BOMBERMAN_SIM_TILEMAPGEN_H
2#define BOMBERMAN_SIM_TILEMAPGEN_H
33 std::mt19937 rng(seed);
40 outTiles[row][col] = baseTiles[row][col];
43 if (outTiles[row][col] == Tile::Grass && brickDist(rng) == 0)
45 outTiles[row][col] = Tile::Brick;
Game-world configuration constants.
constexpr unsigned int kBrickSpawnRandomize
Shared brick-density knob for generated maps; lower means more bricks.
Definition Const.h:27
constexpr unsigned int tileArrayWidth
Tile map width in tiles.
Definition Const.h:43
constexpr unsigned int tileArrayHeight
Tile map height in tiles.
Definition Const.h:44
Tile
Tile type identifiers used in the tile map.
Definition Const.h:13
Shared simulation primitives and constants used by both the client and the authoritative server.
Definition Movement.h:21
void generateTileMap(uint32_t seed, Tile outTiles[tileArrayHeight][tileArrayWidth])
Populates outTiles with a procedurally generated tile map.
Definition TileMapGen.h:31