Lua scripting and an editor your AI assistant can drive
Nucleon Engine scripts games in Lua 5.4 and ships an editor that an AI assistant can drive. Scripts hot reload while the game runs, component scripts attach behaviour to objects, and a built-in Model Context Protocol (MCP) server plus a command line let an assistant or a script build, change and test a project without a mouse.

Lua 5.4, hot reload, a console
Game logic is plain Lua. Change a script and the running game picks it up. The in-game console (F8) runs Lua against the live game. Lua memory is managed with a fast allocator and a paced garbage collector so scripts are built not to cause hitches.
The nc.* runtime modules (game mode, input, saves, quests, navigation, animation and more) ship with the engine and update with it, so a project does not carry copies.
Component scripts
A component script is a Lua file with a lifecycle (init, start, update, fixedUpdate, onEnable, onDisable, destroy, plus trigger and collision events). It uses a familiar component-style API: transform.position, getComponent, addForce, Physics.raycast, Time.deltaTime, Input.getAxis, instantiate and coroutines. Names work in camelCase or PascalCase, and the engine’s native functions remain available in the same script. Add a component to any object in the Details panel; one file defines one component.
An API you can look up
The native API and its generated reference are documented in the manual. Data lives in data assets, curves and tables with CSV import, and formula support, so designers can change numbers without touching code.
Game UI in HTML, CSS and JavaScript
Game screens are web pages. A real embedded Chromium runs your HTML, CSS and JavaScript, with a message bridge between the page and Lua. Pages can also be drawn onto surfaces in the world.
Built-in MCP server
Nucleon Editor includes an MCP server. It is off by default. You can turn it on in Editor Preferences > AI for a local HTTP connection protected by a random token on your own machine, or launch the editor from an MCP client over stdio.
With it on, an MCP-compatible assistant can:
- read and change the open level: add actors and components, set properties by path, move and group objects;
- create and edit materials, animation, sequences, 2D sprites, tile maps and canvases;
- run builds such as navigation, reflection captures, GI and HLOD as jobs;
- start Play, run Lua, read the log and take viewport screenshots;
- look up the engine’s own documentation through the same connection.
Level changes go through the editor’s undo history. Tool calls have time limits, can be cancelled, and report errors with stable codes.
A command line for scripts and build servers
NucleonEditor has one-shot commands for packaging, running tests, building navigation, building HLOD and rendering a movie, with machine-readable output and exit codes. It does the same work the MCP server does, for jobs that do not need a session.
Make a game without a mouse
Because the editor, the MCP server and the command line share the same operations, an assistant can create a project from a template, build a level, play-test it and package it. You review the result in the editor like any other project, because every file is plain text.
Open formats help assistants too
Levels, actors, materials and animations are Lua tables in text files, so an assistant (or git) can read them, diff them and fix them.