Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

396 B
Raw Blame
{
  "initial": "Cutscene",
  "states": [
    {
      "name": "Cutscene",
      "x": 80,
      "y": 110,
      "onEnter": "timeline.play",
      "transitions": [
        { "to": "Gameplay", "condition": "timeline.finished" }
      ]
    },
    {
      "name": "Gameplay",
      "x": 380,
      "y": 110,
      "transitions": [
        { "to": "Cutscene", "trigger": "replay" }
      ]
    }
  ]
}