DFlike

A multiplayer browser game inspired by Dwarf Fortress. Watch autonomous NPCs with needs-driven AI wander, eat, and rest in a shared world. Connect as an observer or take control of an avatar.

Quick Start

npm install
# Terminal 1: Start server
npm -w server run dev
# Terminal 2: Start client
npm -w client run dev

Open http://localhost:3000. Open multiple tabs for multiplayer.

Asset Setup

Character assets must be present at client/public/assets/chars/. If missing:

cp -r chars client/public/assets/

Controls

  • WASD / Arrow Keys -- pan camera (camera mode) or move avatar (avatar mode)
  • TAB -- toggle between camera and avatar mode

Architecture

  • Server: Node.js + Socket.io, server-authoritative ECS simulation at 10 ticks/sec
  • Client: Phaser 3 + TypeScript, Vite bundler
  • Shared: TypeScript types and constants
S
Description
Multiplayer NPC simulation game (Dwarf Fortress-inspired)
Readme 5.4 MiB
Languages
TypeScript 99.9%