Skip to content

Repository files navigation

Project Vector - Server

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.


What It Does

  • 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

Tech

  • Language: C++
  • Library: SFML 2.6.0 (bundled, Network module only)
  • Architecture: Authoritative dedicated server
  • IDE: Visual Studio (.sln included)

Build & Run

SFML 2.6.0 is bundled in the SFML-2.6.0/ directory.

  1. Open ProjectVector_Server.sln in Visual Studio
  2. Ensure SFML include and lib paths point to SFML-2.6.0/
  3. Build the solution (x64 / Release or Debug)
  4. Edit net_config.txt to set the bind IP and port:
127.0.0.1
5000
  1. 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.


Project Structure

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

Related


License

MIT

About

Authoritative dedicated server for Project Vector - a 2D top-down multiplayer shooter. Handles game state, collision resolution, and client broadcasting. Built with C++ and SFML.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages