The dedicated server for Project Vector, a 2D top-down multiplayer shooter built in C++ and SFML. Handles all authoritative game state - player positions, projectiles, collision, and hit detection - broadcasting updates to connected clients each tick.
You need to run this before launching any clients.
- Accepts TCP/UDP connections from Project Vector clients
- Maintains authoritative game state for all connected players
- Processes client inputs and resolves collisions server-side
- Broadcasts world state updates to all clients each game tick
- Handles player join and disconnect cleanly
- Language: C++
- Library: SFML 2.6.0 (bundled, Network module only)
- Architecture: Authoritative dedicated server
- IDE: Visual Studio (
.slnincluded)
SFML 2.6.0 is bundled in the SFML-2.6.0/ directory.
- Open
ProjectVector_Server.slnin Visual Studio - Ensure SFML include and lib paths point to
SFML-2.6.0/ - Build the solution (x64 / Release or Debug)
- Edit
net_config.txtto set the bind IP and port:
127.0.0.1
5000
- Run the server — it will wait for clients to connect
Then launch one or more instances of the client with matching net_config.txt settings.
main.cpp / main.h # Server loop, connection handling, game state
net_config.txt # Bind IP and port configuration
SFML-2.6.0/ # Bundled SFML library
- Client: Project-Vector-SFML
MIT