Molten

Glossary

Arena. A region of memory freed all at once: frame, level, game, screen. See Memory.

Asset. A raw file under assets/ (mesh, texture, sound, shader, font), referred to by path. See Assets.

Behavior. Code that runs every simulation tick on every object having a set of components; the export default behavior([...], ...) of a .cast file.

Binding. A dotted name in a .ui file ({hud.score}) whose value Cast publishes with uiSetNumber, uiSetBool or uiSetText.

Cast. Molten's gameplay language, TypeScript-flavored, compiled to C. Files end in .cast.

castc. The Cast compiler and checker (castc check, fmt, build, run, test).

cast-lsp. The Cast language server used by editors.

Chunk. A .chunk file holding the placed objects of one square area of a level.

Component. A named bundle of data on an object (Health, Transform), with a schema.

Concept file. A data file describing one concept: .object, .level, .chunk, .screen, .ui.

Dev link. The WebSocket connection between games, the dev server and devtools.

Dev server (molten-dev). The hub games and devtools connect to; it also writes saved edits to files.

Devtools (molten-devtools). The native editor, with Edit and Play modes.

Edit mode. Devtools showing and editing the level from its files, with no game running.

Fixed tick (simulation step). The simulation advances in fixed steps (60 per second by default), independent of the frame rate. Behaviors and physics run once per tick.

Frame. One rendered image. Zero or more ticks run per frame.

Generation. The counter in a handle that changes when its object is destroyed, so old handles resolve to null.

Handle. A reference to an engine object (Handle<T>): index plus generation.

Level. A place: a folder with a .level file and chunks. One is loaded at a time.

Live edit. A change made in devtools' Inspector while playing; kept until saved, discarded or the game exits.

Live reload. Updating the running game when a source file is saved, keeping its state.

Module (gameplay module). The shared library built from your Cast and C code, swapped on reload.

Object. One instance of an object type in the world.

Object type. A kind of thing, described by an .object file; also a Cast type.

Override. A component value set for one placed object or part instead of its type.

Part. An object attached to another object, declared in the owner's .object file.

Placed object. An object listed in a chunk file, with a stable id.

Play mode. Devtools running the game in its own window and mirroring it.

Schema. The reflected description of a component: field names, types, offsets, defaults, decorators.

Screen. What the game is doing now (menu, playing, paused); screens form a stack.

Spawn point. A named position in a .level file, read with spawnPosition(index).

TinyCC (molten_tcc). The fast C compiler used for development builds.

Transient field. A component field marked @transient: never saved, reset on reload.

View this page's source on GitHub