Origin Engine
A game engine made for building games with AI
You write the game in TypeScript; a Rust engine takes care of graphics and physics. Play the result right in the browser, or let it run on its own and record a video, so you see each change within minutes.
Origin Engine in one minute
One minute of The Last Light: real gameplay, weather and time of day, dozens of effects and fantasy-style UI components, and one screen in many UI styles, all rendered live by the engine.
Real gameplay
A complete small game, written entirely with the engine’s public TypeScript API. Every clip below is real play: the character walks a cliff path, and one key press changes the weather, the season or the time of day.
The Last Light
Effects
The engine comes with hundreds of effects, and one line of code puts one in your scene. Every effect below was triggered in The Last Light and recorded; filter them by pack.
- 80
- 497
- 14
- 498
Triggered on the walk
The character walks the path while effects go off ahead, lit by the scene and caught in its weather.
Effekseer effects: magic circles, lightning, fire, healing, meteors, cherry blossoms
Geometric effects: magic, explosions, hits, trails and pickups
Toy effects: explosions, fireworks, magic circles, portals, level-ups, confetti
Paper effects: the same effects with a cut-paper finish
Game UI
Game interfaces are written in TSX and drawn on top of the game. Every built-in component below was recorded in the game in the fantasy style; filter them by category.
- 182
- 38
- 36
- 12
- 4
One main menu in 11 UI styles
The game stays the same; only the UI style changes.
In the game
Cards can shine like foil, shimmer like a hologram, glow by rarity or burn away. Give the same UI another style and the whole game feels different.
UI materials: foil shine, hologram, rarity glow, burning away
An RPG interface: character status, a boss health bar and a minimap, shown in six styles
One pause menu, six styles
One main menu, six styles
Visual styles
A single settings file sets the look of the whole game. Here the same scene runs through three 3D presets: low poly, comic book and neon lines.
- 6
- 2
- 6
Change one line, see the result right away
You create, check, record and test a game with the og command. Giving the cards a material effect took one line of code; recording the game again gave the before and after below.
{props.cards.map((c) => (
- <View class={`w-46 h-66 ${c.lift > 0 ? "mb-6" : ""}`}>
+ <View class={`w-46 h-66 ${c.lift > 0 ? "mb-6" : ""}`} material={finish(c, props.burn)}> - 1
Create
Pick a visual style, describe your game in one sentence and get an empty project. You write the gameplay from scratch.
og new lantern-path --look faceted-low-poly --premise "A lamplighter walks a hill path at dusk" - 2
Check
Checks your code, prepares your assets and makes sure the visual style and UI layout hold up.
og check . - 3
Record
Plays the game from a script and records a video, so you judge a change by what you see.
og render . --commands "0:hud;0:mode:cards" --from 6 --to 13 --out cards.mp4 - 4
Test
Test scripts check that the game rules work; screenshots are only for checking the visual style.
og test .
Install
Install the og command-line tool. It downloads an officially signed engine and checks it, then you can create and run your first game.
curl -fsSL https://origingame.ai/downloads/engine/install.sh | sh irm https://origingame.ai/downloads/engine/install.ps1 | iex og new my-game && cd my-game && og run .