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.

376 B
Raw Blame
{
  "initial": "Patrol",
  "states": [
    {
      "name": "Patrol",
      "x": 80,
      "y": 110,
      "transitions": [
        { "to": "Chase", "condition": "seesPlayer" }
      ]
    },
    {
      "name": "Chase",
      "x": 380,
      "y": 110,
      "onUpdate": "chase",
      "transitions": [
        { "to": "Patrol", "condition": "lostPlayer" }
      ]
    }
  ]
}