|
|
Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
|
Deterministic tile map generation shared by client and server. More...
Go to the source code of this file.
Namespaces | |
| namespace | bomberman::sim |
| Shared simulation primitives and constants used by both the client and the authoritative server. | |
Functions | |
| void | bomberman::sim::generateTileMap (uint32_t seed, Tile outTiles[tileArrayHeight][tileArrayWidth]) |
Populates outTiles with a procedurally generated tile map. | |
Deterministic tile map generation shared by client and server.
Usage: uint32_t seed = ...; Tile map[tileArrayHeight][tileArrayWidth]; bomberman::sim::generateTileMap(seed, map);
The seed is chosen by the server and transmitted to the client over MsgLevelInfo at the start of the game.
std::uniform_int_distribution is deterministic within one standard library implementation, but mixed client/server toolchains could still diverge. If heterogeneous builds ever matter, switch to an explicitly specified distribution policy over raw PRNG output.