Open-source game engine · MIT licensed

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.

Latest version — · MIT

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 · A walk at sunset

A walk at sunset

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.

built-in effects
80
downloadable effects
497
effect packs
14
effects, duplicates removed
498

Counts from Origin Engine dev.20261128.2

  • actionLines_halo

    actionLines_halo

  • Homing_Laser01

    Homing_Laser01

  • aoi-chou

    aoi-chou

  • A_Gohlem1

    A_Gohlem1

  • HealPotion1

    HealPotion1

  • Atmosphere

    Atmosphere

  • Benediction

    Benediction

  • aura

    aura

  • Arrow1

    Arrow1

  • Blow1

    Blow1

  • celebration

    celebration

  • afterburner

    afterburner

  • afterburner

    afterburner

  • actionLines_halo2

    actionLines_halo2

  • Laser01

    Laser01

  • iwai-ume

    iwai-ume

  • A_Salamander1

    A_Salamander1

  • HealPotion2

    HealPotion2

  • Background

    Background

  • BloodLance

    BloodLance

  • snowstorm11

    snowstorm11

  • Arrow2

    Arrow2

  • Blow2

    Blow2

  • dust

    dust

  • boost

    boost

  • boost

    boost

  • actionLines_radial

    actionLines_radial

  • Laser02

    Laser02

  • kiroi-chou

    kiroi-chou

  • A_Salamander2

    A_Salamander2

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

    Effekseer effects: magic circles, lightning, fire, healing, meteors, cherry blossoms

  • Geometric effects: magic, explosions, hits, trails and pickups

    Geometric effects: magic, explosions, hits, trails and pickups

  • Toy effects: explosions, fireworks, magic circles, portals, level-ups, confetti

    Toy effects: explosions, fireworks, magic circles, portals, level-ups, confetti

  • Paper effects: the same effects with a cut-paper finish

    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.

game UI components
182
basic controls
38
full screens
36
UI styles
12
UI material effects
4

Counts from Origin Engine dev.20261128.2

  • ArenaDraft

    ArenaDraft

  • ArenaLobby

    ArenaLobby

  • ArenaReady

    ArenaReady

  • ArenaRoster

    ArenaRoster

  • ArenaRoundHud

    ArenaRoundHud

  • ArenaScoreboard

    ArenaScoreboard

  • ArenaSpectator

    ArenaSpectator

  • ArenaVersus

    ArenaVersus

  • ArenaVote

    ArenaVote

  • Avatar

    Avatar

  • Currency

    Currency

  • EmptyState

    EmptyState

  • ErrorState

    ErrorState

  • ItemSlot

    ItemSlot

  • ListItem

    ListItem

  • Pips

    Pips

  • Ribbon

    Ribbon

  • SkeletonGroup

    SkeletonGroup

  • Spinner

    Spinner

  • Steps

    Steps

  • CardCollection

    CardCollection

  • CardDeckList

    CardDeckList

  • CardFace

    CardFace

  • CardHand

    CardHand

  • CardPiles

    CardPiles

  • CardReward

    CardReward

  • AbilityBar

    AbilityBar

  • AbilitySlot

    AbilitySlot

  • ActionButton

    ActionButton

  • ActionHints

    ActionHints

One main menu in 11 UI styles

The game stays the same; only the UI style changes.

  • Fantasy

    Fantasy

  • Sci-fi

    Sci-fi

  • Cartoon

    Cartoon

  • Anime

    Anime

  • Ink

    Ink

  • Tactical

    Tactical

  • Arctic tactical

    Arctic tactical

  • Pixel

    Pixel

  • Candy

    Candy

  • Storybook

    Storybook

  • Minimal

    Minimal

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

    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

    An RPG interface: character status, a boss health bar and a minimap, shown in six styles

  • One pause menu, six styles

    One pause menu, six styles

  • One main 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.

visual styles
6
style variants
2
moods
6
Visual styles

Low poly → Comic book → Neon lines

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.

Before: plain cards
Before: plain cards
After: each card has its own material effect
After: each card has its own material effect
{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. 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. 2

    Check

    Checks your code, prepares your assets and makes sure the visual style and UI layout hold up.

    og check .
  3. 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. 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.

macOS / Linux

curl -fsSL https://origingame.ai/downloads/engine/install.sh | sh

Windows

irm https://origingame.ai/downloads/engine/install.ps1 | iex

Then run

og new my-game && cd my-game && og run .
Rather not write code? Describe the game you want in Origin, which is built on this engine. Open Origin