Molten

The Molten Guide

Molten is a 3D game engine for Windows and Linux. You describe your game in small, readable text files, write gameplay in Cast (a language that reads like TypeScript and compiles to C), and watch the running game update within about a second every time you save a file.

This guide teaches Molten from scratch. If you have never used it, read Getting started, then work through the tutorial. The rest is reference you can come back to.

The design spec, docs/DESIGN.md, is the source of truth. This guide explains what the spec and the code do today. Where they differ, the guide says so in a short Note.

Contents

Start here

Concepts

The Cast language

Reference

Working with Molten

How the examples were checked

  • Every complete Cast program in the language chapters (the ones with export function main()) was compiled and run with castc run, and the output shown under it is the real output. You can re-check them with python docs/agents/check_examples.py --bin build/debug/bin/Debug.
  • Every tutorial step was built as a real game folder, checked with castc check, and run in a hidden window to confirm it starts and does what the step says.
  • Concept-file examples come from the samples in samples/ or were checked with castc check.

View this page's source on GitHub