Skip to content

Add Three.js web FactoryForge port - #3

Draft
auxon wants to merge 1 commit into
mainfrom
cursor/web-factoryforge-port
Draft

Add Three.js web FactoryForge port#3
auxon wants to merge 1 commit into
mainfrom
cursor/web-factoryforge-port

Conversation

@auxon

@auxon auxon commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a Vite + TypeScript + Three.js (WebGPU/WebGL) web client under web/ with ECS sim, HUD, save/load, AutoPlay, PvAI, and basic multiplayer scaffolding.
  • Include keyboard/mouse controls with fixed WASD/arrow movement, building placement (clears trees in footprint), and transparent PNG sprite handling.
  • Ship synced assets, shared data/protocol, and a lightweight WebSocket server for MP.

Test plan

  • cd web && npm install && npm run dev - splash/menu ? New Game loads
  • WASD and arrow keys move in the expected directions; facing animation matches
  • Build (B) ? pick building ? LMB places; trees in footprint are cleared; status shows Place mode
  • Transparent sprites (buildings/player/trees) have no colored underfill
  • Optional: npm run server and Lobby connect path still opens without crashing

Bring FactoryForge to Vite/TypeScript with keyboard controls, build placement, and transparent PNG handling for sprites.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant