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.

2.8 KB
Raw Blame
{
  "version": 4,
  "name": "Main",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 10
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 300,
            "isActive": true,
            "priority": 0
          }
        }
      ],
      "visible": true
    },
    {
      "id": 1,
      "name": "Backdrop",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 820,
              "y": 620
            },
            "color": {
              "r": 0.07,
              "g": 0.08,
              "b": 0.1,
              "a": 1
            },
            "layer": -10
          }
        }
      ],
      "visible": true
    },
    {
      "id": 2,
      "name": "Canvas",
      "parent": null,
      "children": [
        3
      ],
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "Canvas",
          "data": {
            "designResolution": {
              "x": 800,
              "y": 600
            },
            "scaleMode": 2
          }
        },
        {
          "type": "UINode",
          "data": {}
        }
      ],
      "visible": true
    },
    {
      "id": 3,
      "name": "ShellFooter",
      "parent": 2,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "insetLeft": {
              "value": 0,
              "unit": 0
            },
            "insetRight": {
              "value": 0,
              "unit": 0
            },
            "insetBottom": {
              "value": 10,
              "unit": 0
            },
            "height": {
              "value": 16,
              "unit": 0
            }
          }
        },
        {
          "type": "Text",
          "data": {
            "content": "Shell scene — camera, backdrop and this footer persist across every scene swap",
            "fontSize": 11,
            "color": {
              "r": 0.55,
              "g": 0.58,
              "b": 0.64,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        }
      ],
      "visible": true
    }
  ]
}