multiplayer

Guides multiplayer game architecture, networking synchronization, and server-authoritative security design.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill multiplayer-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multiplayer
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/.agent/skills/game-development/multiplayer
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill multiplayer-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Designing multiplayer games requires difficult decisions about network architecture, state synchronization, latency handling, and cheat prevention, and wrong choices lead to unplayable or exploitable games. ## Core Features & Use Cases - Architecture Selection: Decision trees and comparison tables for choosing between dedicated servers, P2P, host-based, and distributed architectures based on game type. - Synchronization Guidance: Covers state sync vs input sync, client prediction, interpolation, reconciliation, and lag compensation techniques. - Security & Optimization: Server-authority validation patterns, anti-cheat strategies, bandwidth reduction via delta compression and quantization, and matchmaking considerations. - Use Case: When building a real-time competitive shooter, use this Skill to decide on an authoritative dedicated server, design lag compensation for hit detection, and set appropriate update rates for position and health data. ## Quick Start Ask the AI to help design the networking architecture for a cooperative multiplayer game using the multiplayer skill.

Frequently Asked Questions about multiplayer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose a multiplayer network architecture for my game?

Choose based on game type: competitive real-time games need authoritative dedicated servers, cooperative casual games work with host-based setups, turn-based games suit simple client-server, and MMOs require distributed servers. Dedicated servers offer low latency and strong security at higher cost.

What is the difference between state sync and input sync?

State sync transmits game state snapshots and suits simple games with few objects, while input sync transmits only player inputs and works better for action games. Most games use a hybrid approach combining both techniques.

How does lag compensation work in multiplayer games?

Lag compensation combines client-side prediction, interpolation for smooth remote player movement, reconciliation to fix mispredictions, and server-side rewinding for accurate hit detection. Design your game to tolerate 100-200ms latency.

How do I prevent cheating in a multiplayer game?

Make the server the sole authority: validate movement to stop speed hacks, validate sight lines against aimbots, keep inventory server-side to prevent item duplication, and never send hidden data to clients to block wall hacks. Never trust the client.

What update rate should I use for multiplayer game networking?

Send position updates at 20-60 Hz, while health, inventory, and chat should only be sent on change or on send. Reduce bandwidth further with delta compression, quantization, priority ordering, and area-of-interest filtering.