AI-first / Three.js game engine

NGIN

Describe the game.
The modules already walk.

Alpha Three.js WebGPU engine. Walking, cars, boats, and physics are built. In active development. Prompt the rest.

Material / worn-factory-siding

Renderer
Three.js 0.185 / WebGPU
Simulation
Jolt 1.1.0 / WASM
Architecture
ES modules Static HTML
Toolchain
No build step PHP local server

From folder to playable.

Start with the sandbox. Keep the engine defaults. Make the game yours.

  1. Run locally

    Open a terminal in the NGIN folder and start a PHP server.

    php -S localhost:8080
    localhost:8080/game.html
  2. Give your AI the context

    Start with the NGIN prompt, then describe your level, objectives, and the modules to reuse.

    Open the AI prompt
  3. Build on the template

    Copy src/games/template.js, add your game logic, and point src/main.js at it.

    New-game guide

Modules the AI is supposed to reuse

A material library to build on.

Albedo, normal, roughness, metallic, ambient occlusion, and height. Existing texture sets, ready for your world.

PBR integration reference

You write the prompt. NGIN keeps the defaults.

Use NGIN. A person walks on grass, drives a truck, and takes a boat across a pool. Night is navy. Do not invent walking, cars, or water from scratch.

How to build a traversal level

Use NGIN walking. Third person, drag to look. Build a courtyard with stairs, a ramp, and a trampoline. Add matching colliders to every solid surface. Keep the block character and default movement.

Walking module
How to add a delivery loop

Use NGIN driving, carry, and inventory. Add a truck and orange crates. E enters the truck, F carries, G stows. Add a marked delivery area and count crates delivered. Do not rewrite vehicles or carry.

Carry module
How to add water and atmosphere

Use NGIN water, boats, and day/night. A pool with a fishing boat, start at dusk, and enable rain. Keep buoyancy and the existing sky system. Add my game logic separately.

Water module

Inside the engine.