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.

7.6 KB
Raw Blame
{
  "version": 4,
  "name": "Probe research",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1.5,
              "y": 1,
              "z": 4
            },
            "rotation": {
              "x": -0.103,
              "y": 0.178,
              "z": 0.019,
              "w": 0.978
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 0,
            "fov": 50,
            "nearPlane": 0.1,
            "farPlane": 20,
            "isActive": true
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Lamp",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "rotation": {
              "w": 0.7071067811865475,
              "x": 0,
              "y": -0.7071067811865475,
              "z": 0
            }
          }
        },
        {
          "type": "Light",
          "data": {
            "type": 1,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "intensity": 1,
            "meshShadows": true,
            "shadowExtent": 8,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "Wall",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 3,
              "y": 0,
              "z": 0
            },
            "scale": {
              "x": 0.001,
              "y": 0.04,
              "z": 0.04
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true,
            "color": {
              "r": 1,
              "g": 0.3,
              "b": 0.1,
              "a": 1
            }
          }
        }
      ]
    },
    {
      "id": 3,
      "name": "Test cube",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "scale": {
              "x": 0.01,
              "y": 0.01,
              "z": 0.01
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            }
          }
        }
      ]
    },
    {
      "id": 4,
      "name": "Occluder",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1.5,
              "y": 0,
              "z": 0
            },
            "scale": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true,
            "color": {
              "r": 0.4,
              "g": 0.4,
              "b": 0.4,
              "a": 1
            }
          }
        },
        {
          "type": "ProbeOccluder",
          "data": {}
        }
      ]
    },
    {
      "id": 5,
      "name": "Probe volume",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "LightProbeVolume",
          "data": {
            "halfExtents": {
              "x": 1,
              "y": 1,
              "z": 1
            },
            "spacing": 1,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 6,
      "name": "Canvas",
      "parent": null,
      "children": [
        7,
        8
      ],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "Canvas",
          "data": {
            "designResolution": {
              "x": 960,
              "y": 640
            },
            "scaleMode": 2,
            "backgroundColor": {
              "r": 0,
              "g": 0,
              "b": 0,
              "a": 0
            }
          }
        },
        {
          "type": "UINode",
          "data": {}
        }
      ]
    },
    {
      "id": 7,
      "name": "Status",
      "parent": 6,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "width": {
              "value": 930,
              "unit": 0
            },
            "height": {
              "value": 36,
              "unit": 0
            },
            "insetLeft": {
              "value": 0,
              "unit": 1
            },
            "marginLeft": {
              "value": 15,
              "unit": 0
            },
            "insetTop": {
              "value": 0,
              "unit": 1
            },
            "marginTop": {
              "value": 12,
              "unit": 0
            }
          }
        },
        {
          "type": "Text",
          "data": {
            "content": "Probe research",
            "fontSize": 18,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        },
        {
          "type": "ProbeStatus",
          "data": {}
        }
      ]
    },
    {
      "id": 8,
      "name": "Controls",
      "parent": 6,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "width": {
              "value": 930,
              "unit": 0
            },
            "height": {
              "value": 30,
              "unit": 0
            },
            "insetLeft": {
              "value": 0,
              "unit": 1
            },
            "marginLeft": {
              "value": 15,
              "unit": 0
            },
            "insetTop": {
              "value": 0,
              "unit": 1
            },
            "marginTop": {
              "value": 48,
              "unit": 0
            }
          }
        },
        {
          "type": "Text",
          "data": {
            "content": "L: light | Space: updates | O: occluder | R: cycle | Arrows: camera",
            "fontSize": 16,
            "color": {
              "r": 0.8,
              "g": 0.9,
              "b": 1,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        }
      ]
    }
  ]
}