Browser-based Three.js wizard combat game. Run it locally with Node.js.
- Node.js 18+ (LTS recommended)
- A modern desktop browser (Chrome / Edge / Firefox)
-
Copy or clone this folder to the machine.
-
In the project directory:
npm install
-
Start the dev server:
npm run dev
-
Open http://localhost:3000 in your browser. Click the page when prompted so pointer lock works.
The crafting companion page is built as http://localhost:3000/craft.html (same dev server).
npm run build
npm run previewPreview serves the built files locally (see terminal for the URL).
If you use a real Wii Remote via WiimoteHook (DSU on port 26760), run the bridge on Windows in a second terminal after npm install:
node wiimote-bridge.mjsDefaults: DSU 127.0.0.1:26760, WebSocket ws://localhost:26761. Override with --dsu-port, --ws-port, --dsu-host if needed.
The xinput-ffi package is native; npm install must succeed on Windows for rumble support. The main game still runs with keyboard/mouse without the bridge.
| Command | Description |
|---|---|
npm run dev |
Vite dev server (port 3000) |
npm run build |
Typecheck (tsc) + Vite production build |
npm run preview |
Serve the dist/ build |