F5: Simulation core and player command stream
Add the fixed-tick Simulation, the EntityRegistry with never-reused IDs, SimRng's named seeded streams, and the 14-byte PlayerCommand used by humans, bots and the network. state_hash is a SHA-256 over a canonical encoding of the state. Movement is a flat placeholder until the v0.2 character controller. Tests replay a 24-player command log over 10,000 ticks and scan src/sim for unseeded randomness and presentation code. Closes #5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,10 @@ extends RefCounted
|
||||
|
||||
# Simulation
|
||||
const TICK_RATE_HZ: int = 30
|
||||
## Commands further ahead of the current tick than this are rejected.
|
||||
const MAX_COMMAND_LEAD_TICKS: int = 60
|
||||
## Width and depth of the playable world. Positions are clamped inside it.
|
||||
const WORLD_SIZE_METRES: float = 1024.0
|
||||
|
||||
# Match sizes
|
||||
const SOLO_PLAYERS: int = 24
|
||||
|
||||
Reference in New Issue
Block a user