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.
-
Run locally
Open a terminal in the NGIN folder and start a PHP server.
localhost:8080/game.htmlphp -S localhost:8080 -
Give your AI the context
Start with the NGIN prompt, then describe your level, objectives, and the modules to reuse.
Open the AI prompt -
Build on the template
Copy
New-game guidesrc/games/template.js, add your game logic, and pointsrc/main.jsat it.
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.
Oily tubework Industrial / metal
Red sci-fi metal Paneling / metal
Worn factory siding Weathered / painted
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 moduleHow 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 moduleHow 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