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

Shared simulation tuning constants used by client and server gameplay code. More...

#include <cstdint>

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.
 

Variables

constexpr int16_t bomberman::sim::kTickRate = 60
 Simulation tick rate in Hz.
 
constexpr uint8_t bomberman::sim::kDefaultPlayerMaxBombs = 1
 Default number of simultaneously active bombs a player may own.
 
constexpr uint8_t bomberman::sim::kDefaultPlayerBombRange = 1
 Default explosion radius in tiles for newly placed bombs.
 
constexpr uint32_t bomberman::sim::kDefaultBombFuseTicks = static_cast<uint32_t>(kTickRate) * 3u / 2u
 Default authoritative bomb fuse in simulation ticks.
 
constexpr double bomberman::sim::kPlayerSpeedTilesPerSecond = 4.0
 Player movement speed in tiles per second.
 
constexpr float bomberman::sim::kPlayerHitboxScale = 0.5f
 Player hitbox size as a fraction of the tile size.
 
constexpr int32_t bomberman::sim::kMaxFrameClampMs = 250
 Maximum milliseconds the fixed-step accumulator will simulate in one frame.
 
constexpr int32_t bomberman::sim::kMaxStepsPerFrame = 8
 Maximum simulation steps taken within a single frame even if the accumulator exceeds the limit.
 
constexpr int32_t bomberman::sim::kDefaultServerInputLeadTicks = 1
 Default server-side input lead in ticks for authoritative input scheduling.
 
constexpr int32_t bomberman::sim::kDefaultServerSnapshotIntervalTicks = 1
 Default server snapshot interval in simulation ticks (1 = every tick / 60 Hz).
 

Detailed Description

Shared simulation tuning constants used by client and server gameplay code.