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.

687 B
Raw Blame
{
  "version": 1,
  "actions": {
    "Move": {
      "type": "axis2d",
      "bindings": [
        { "kind": "keys2d", "up": "KeyW", "down": "KeyS", "left": "KeyA", "right": "KeyD" },
        { "kind": "stick", "stick": "left" }
      ]
    },
    "Jump": {
      "type": "button",
      "bindings": [
        { "kind": "key", "code": "Space" },
        { "kind": "gpButton", "button": 0 }
      ]
    },
    "Fire": {
      "type": "button",
      "bindings": [
        { "kind": "mouse", "button": 0 },
        { "kind": "gpButton", "button": 2 }
      ]
    },
    "Aim": {
      "type": "axis2d",
      "bindings": [
        { "kind": "stick", "stick": "right" }
      ]
    }
  }
}