How krunkit/krunknative-odin works
KrunkNative is a native Odin rewrite of a Krunker-style multiplayer game. The main workflow is player input into the client, followed by local authoritative simulation for offline play or TCP communication with the dedicated server for multiplayer; the client presents the resulting game state. The README documents maps, data-driven gameplay configuration, classes, weapons, match rules, UI, audio, and rendering. Source excerpts were not provided for runtime modules, so the graph uses documented capabilities and avoids asserting internal call sequences beyond that documentation.
Main entry points: main.odin Client runtime · game.odin Game simulation · net_client.odin Client networking · net_server.odin TCP networking
Components 17
Game client
- Client runtime
src/client/main.odin - UI and input
src/client/ui.odin - Menus
src/menu - Renderer
src/client/renderer.odin - Audio
src/client/audio.odin - Client networking
src/client/net_client.odin
Shared gameplay
- Game simulation
src/shared/game.odin - Movement and combat
src/shared/player.odin - Maps and modes
src/shared/map.odin - Native protocol
src/shared/net.odin - Gameplay configuration
src/shared/config.odin
Dedicated server
- Server runtime
src/server/main.odin - TCP networking
src/server/net_server.odin
Game content
- Bundled maps
assets/maps - Game settings
assets/config/game.toml - Runtime assets
assets
Other components
- Player
Connections 17
- Player → Client runtime: plays through
README.md - Client runtime → UI and input: accepts input
README.md - UI and input → Menus: offers menus
README.md - Client runtime → Renderer: presents game
README.md - Client runtime → Audio: provides audio
README.md - Client runtime → Client networking: connects for multiplayer
README.md - Client runtime → Game simulation: runs offline simulation
README.md - Client networking → TCP networking: exchanges TCP data
README.md - TCP networking → Server runtime: serves clients
README.md - Server runtime → Game simulation: runs authoritative simulation
README.md - Game simulation → Movement and combat: simulates gameplay
README.md - Game simulation → Maps and modes: applies match rules
README.md - Client networking → Native protocol: uses native protocol
README.md - TCP networking → Native protocol: uses native protocol
README.md - Gameplay configuration → Game settings: loads settings
README.md - Maps and modes → Bundled maps: provides map choices
README.md - Renderer → Runtime assets: uses runtime assets
README.md