added basic network play

This commit is contained in:
2025-12-23 19:03:33 +01:00
parent 5ec4bf926b
commit a7a3ae9055
14 changed files with 1387 additions and 62 deletions

View File

@ -84,8 +84,9 @@ Do not introduce new build steps unless required.
- Rendering
- Input
- Game simulation
- Networking must run in a **separate thread**
- SDL main loop must **never block** on networking
- Networking must be **non-blocking** from the SDL main loop
- Either run networking on a separate thread, or poll ENet frequently with a 0 timeout
- Never wait/spin for remote inputs on the render thread
- Cross-thread communication via queues or buffers only
---
@ -113,7 +114,8 @@ Never hardcode machine-specific paths.
## Networking (COOPERATE Network Mode)
Follow `network_cooperate_multiplayer.md`.
Follow `docs/ai/cooperate_network.md`.
If `network_cooperate_multiplayer.md` exists, keep it consistent with the canonical doc.
Mandatory model:
- **Input lockstep**