How yvt/openspades works
OpenSpades is a cross-platform Ace of Spades 0.75 client. The principal workflow is launching the game, connecting to a compatible server, receiving map and gameplay updates, updating the client world, and presenting the game through rendering, audio, and UI. Its runtime also includes game modes and an AngelScript extension layer. The graph reflects the README and the supplied source index/excerpts; several UI, renderer, audio, and scripting links are not directly evidenced in the sampled code, so those connections are omitted or marked unverified.
Main entry points: Client.h Client runtime · NetClient.cpp Network client · World.h Game world · Client_Update.cpp Client updates
Components 18
Launch and UI
- Game startup
Sources/Gui/Main.cpp - Game screens
Sources/Gui/MainScreen.cpp
Networking and world
- Client runtime
Sources/Client/Client.h - Network client
Sources/Client/NetClient.cpp
Gameplay
- Game world
Sources/Client/World.h - Voxel map
Sources/Client/GameMap.h - Player simulation
Sources/Client/Player.h - Game modes
Sources/Client/IGameMode.h - Client updates
Sources/Client/Client_Update.cpp
Presentation
- Player presentation
Sources/Client/ClientPlayer.cpp - Renderer interface
Sources/Client/IRenderer.h - OpenGL renderer
Sources/Draw/GLProgramManager.cpp - Framebuffers
Sources/Draw/GLFramebufferManager.cpp - Audio devices
Sources/Audio/ALDevice.cpp
Scripting
- Script manager
Sources/ScriptBindings/ScriptManager.h - Script bindings
Sources/ScriptBindings
Other components
- Player
- Game server
Connections 20
- Player → Game startup: launches
Sources/Gui/Main.cpp - Game startup → Game screens: opens
Sources/Gui/Main.cpp - Player → Game screens: uses
- Client runtime → Network client: owns
Sources/Client/NetClient.cpp - Network client → Game server: connects
- Network client → Game world: updates
Sources/Client/NetClient.cpp - Network client → Voxel map: loads
Sources/Client/NetClient.cpp - Game world → Voxel map: uses
Sources/Client/World.h - Game world → Player simulation: simulates
- Network client → Game modes: updates mode
Sources/Client/NetClient.cpp - Client runtime → Client updates: updates
Sources/Client/Client_Update.cpp - Client updates → Game world: reads state
Sources/Client/Client_Update.cpp - Client updates → Player simulation: updates
- Client runtime → Player presentation: renders player
Sources/Client/ClientPlayer.cpp - Player presentation → Renderer interface: requests rendering
Sources/Client/ClientPlayer.cpp - Renderer interface → OpenGL renderer: uses backend
- OpenGL renderer → Framebuffers: allocates buffers
- Client runtime → Audio devices: uses audio
- Client runtime → Script manager: uses scripting
- Script manager → Script bindings: registers
Sources/ScriptBindings/ScriptManager.cpp