Back to projects
Gaming / Real-time live

Space Strategy Game

Real-time multiplayer auto-battler with physically accurate orbital mechanics and deterministic combat.

A server-authoritative space strategy game where orbital mechanics meet supply chain warfare.

Core Systems

Deterministic Combat — Every battle outcome is mathematically identical across all clients using Mulberry32 PRNG. This enables replay verification, anti-cheat detection, and instant battle resolution without server roundtrips.

Orbital Mechanics — Ships follow realistic Keplerian orbits around planetary bodies. Transfer windows open and close based on actual orbital periods, forcing players to plan multi-turn maneuvers.

Supply Chains — Resources flow through a network of extraction, refining, and manufacturing nodes. Disrupting enemy supply lines is as effective as direct combat.

Adaptive AI — Machine learning models observe player patterns and adjust difficulty dynamically. The AI learns your habits and exploits them.

Project Info

Status
live
Category
Gaming / Real-time

Architecture

How the pieces fit together.

RESTWebSocketTurn ProcessingPub/SubNext.js FrontendNestJS APIGame EngineSocket.ioBullMQ WorkersPostgreSQLRedisAdaptive AI

Tech Stack

The tools behind the build.

Frontend

Next.js 15
App Router frontend with React 19
PixiJS
2D galaxy map and space rendering
Three.js
3D combat visualization
Zustand
Client-side state management

Backend

NestJS 10
Server-authoritative API with 46 modules
Socket.io
Real-time WebSocket with Redis pub/sub
BullMQ
Background turn processing queue
Prisma
Type-safe ORM for 58 database models

Infrastructure

PostgreSQL 15
Primary database with pgcrypto
Redis 7
Cache, sessions, and job queue
Docker Swarm
Container orchestration