Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
Const.h File Reference

Game-world configuration constants. More...

#include <cstdint>

Go to the source code of this file.

Enumerations

enum class  Tile : uint8_t {
  Stone , Grass , Brick , EmptyGrass ,
  Bomb , Bang
}
 Tile type identifiers used in the tile map.
 

Variables

constexpr int bomberman::playerStartX = 1
 Player spawn tile column.
 
constexpr int bomberman::playerStartY = 1
 Player spawn tile row.
 
constexpr unsigned int bomberman::kBrickSpawnRandomize = 10
 Shared brick-density knob for generated maps; lower means more bricks.
 
constexpr unsigned int bomberman::brickSpawnRandomize = kBrickSpawnRandomize
 Legacy alias kept for older call sites.
 
constexpr unsigned int bomberman::doorSpawnRandomize = 10
 Door placement — lower value means door spawns further in.
 
constexpr unsigned int bomberman::bangSpawnCells = 5
 Number of cells in the bang spread pattern.
 
constexpr unsigned int bomberman::minEnemiesOnLevel = 2
 
constexpr unsigned int bomberman::maxEnemiesOnLevel = 10
 
constexpr int bomberman::bangSpawnPositions [bangSpawnCells][2]
 
constexpr unsigned int bomberman::tileArrayWidth = 31
 Tile map width in tiles.
 
constexpr unsigned int bomberman::tileArrayHeight = 13
 Tile map height in tiles.
 
constexpr unsigned int bomberman::tileSize = 16
 Source sprite size in pixels (not scaled render size).
 
constexpr Tile bomberman::baseTiles [tileArrayHeight][tileArrayWidth]
 

Detailed Description

Game-world configuration constants.

Variable Documentation

◆ bangSpawnPositions

constexpr int bomberman::bangSpawnPositions[bangSpawnCells][2]
constexpr
Initial value:
= {
{ 0, 0},
{ 0, 1},
{ 1, 0},
{ 0, -1},
{-1, 0}
}