Skip to content
crafter-gamesPublic

About

TS-first game engine: one codebase for web and native macOS/Windows via scriptc

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

dotframe

dotframe

The game engine your agent can play.

npm downloads license

dotframe.crafter.games

One TypeScript codebase for the web (WebGPU, with a Canvas 2D fallback for 2D games), iPhone, macOS, Windows and Discord. Native builds compile with scriptc, so there is no JavaScript engine in the binary. Every frame is deterministic, so an agent can play the game headless, render any frame, and catch a netplay desync.

Install

npm i -g dotframe                      # needs Bun on PATH
npx skills add crafter-games/dotframe  # the agent skill

Quick start

dotframe new my-game --template blank  # fighter, platformer, blank
cd my-game && dotframe dev

Agents start with dotframe skills get core.

CLI

dotframe sim --mash 7 --frames 600 --json   # headless run: state + checksum
dotframe snap --frame 300 --mash 7          # render one frame through WebGPU
dotframe replay record replays/a.json --mash 7
dotframe replay verify replays/*.json       # replays are the tests
dotframe desync --latency 120ms --jitter 30ms
dotframe build web|ios|macos|discord
dotframe deploy web --prod --dry-run        # external actions need --yes
dotframe doctor --fix

Every command takes --json. Errors carry a code, a fix, and the skill to read.

A game opts in with a dotframe.json (targets, deploy, relay) and a sim module that default-exports defineSim from src/sim.ts.

Made with dotframe

Espresso perfecto · Craft Ones · Crafter Smash · The Ones

Shipped one? Add the badge:

Made with dotframe
<a href="https://dotframe.crafter.games">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/crafter-games/dotframe/main/assets/badge/made-with-dotframe-dark.svg">
    <img alt="Made with dotframe" src="https://raw.githubusercontent.com/crafter-games/dotframe/main/assets/badge/made-with-dotframe-light.svg" height="32">
  </picture>
</a>

More

MIT

About

TS-first game engine: one codebase for web and native macOS/Windows via scriptc

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages