Getting Started

Installation

How to scaffold a new MavonEngine Three.js game engine project — single-player or multiplayer.

Requires Node 24 or newer.

Scaffolding

Use the create command of the MavonEngine CLI to scaffold a new project.

Multiplayer

npx @mavonengine/cli create my-game

This downloads the multiplayer template, installs its dependencies, starts the game server and opens the game in your browser, with a live dashboard of the server in the terminal.

The multiplayer template includes the authoritative server setup, networking boilerplate, and a working client/server split out of the box.

npx @mavonengine/create-bootstrap still works and forwards to mavonengine create.

Single-player

coming soon

Running the project

cd my-game
npm run dev

npm run dev runs mavonengine dev: it starts the game server and the client together and shows the dashboard. Everything runs on one port — the game server serves the client (with hot reload in dev) and the game socket next to its own API.

URLDescription
http://localhost:8050/The game
http://localhost:8050/#debugDebug mode: debug UI and physics colliders
http://localhost:8050/api/game/healthServer health endpoint

Press . in the game to open the level editor.

Project layout

PathDescription
client/The browser game (Game), built with Vite
server/The game server (Server); server/src/Base/ holds the classes shared with the client
scenes/Scene files loaded by both sides
mavonengine.jsonEnabled plugins
.mcp.jsonRegisters the MCP server for AI assistants