Backend server for SolFrag - a blockchain-based multiplayer FPS game on Solana.
This is the server-side component that handles real-time multiplayer gameplay, matchmaking, and blockchain integration.
The server acts as the central hub for gameplay:
- Connects Players: Manages real-time communication between players
- Creates Matches: Sets up 2-player game rooms and records them on the Solana blockchain
- Validates Gameplay: Ensures fair play by verifying player actions
- Records Kills: Processes and confirms kill transactions on the blockchain
Players → Server → Solana Blockchain
- Players connect to the server via WebSocket
- Server matches 2 players together and creates a match on Solana
- During gameplay, server validates all actions
- When a player scores a kill, it gets recorded on the blockchain
- Match results are stored permanently on Solana
For the complete project including the game client and smart contracts, visit: github.com/code-pankaj/SolFrag