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.

14.9 KB
Raw Blame
{
  "version": 4,
  "name": "Device quality",
  "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": {
              "x": -0.3,
              "y": -0.25,
              "z": 0,
              "w": 0.9205976319760985
            }
          }
        },
        {
          "type": "Light",
          "data": {
            "type": 1,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "intensity": 3,
            "meshShadows": true,
            "shadowExtent": 8,
            "enabled": true,
            "sourceAngle": 0.53
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "Floor",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": -0.6,
              "z": 0
            },
            "scale": {
              "x": 0.05,
              "y": 0.001,
              "z": 0.05
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.35,
              "g": 0.4,
              "b": 0.5,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "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,
            "enabled": true,
            "color": {
              "r": 1,
              "g": 0.4,
              "b": 0.12,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        },
        {
          "type": "QualitySubject",
          "data": {}
        }
      ]
    },
    {
      "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": "Device quality",
            "fontSize": 18,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        },
        {
          "type": "QualityStatus",
          "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": "1 / 2 / 3: quality | A: auto | 0: original | Arrows: camera",
            "fontSize": 16,
            "color": {
              "r": 0.8,
              "g": 0.9,
              "b": 1,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        }
      ]
    },
    {
      "id": 9,
      "name": "Ambient",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "Light",
          "data": {
            "type": 2,
            "intensity": 0.2,
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 20,
      "name": "Cube 0",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1.35,
              "y": -0.25,
              "z": -0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 21,
      "name": "Cube 1",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -0.45,
              "y": -0.25,
              "z": -0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 22,
      "name": "Cube 2",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0.45,
              "y": -0.25,
              "z": -0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 23,
      "name": "Cube 3",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1.35,
              "y": -0.25,
              "z": -0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 24,
      "name": "Cube 4",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1.35,
              "y": -0.25,
              "z": 0
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 27,
      "name": "Cube 7",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1.35,
              "y": -0.25,
              "z": 0
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 28,
      "name": "Cube 8",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1.35,
              "y": -0.25,
              "z": 0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 29,
      "name": "Cube 9",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -0.45,
              "y": -0.25,
              "z": 0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 30,
      "name": "Cube 10",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0.45,
              "y": -0.25,
              "z": 0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    },
    {
      "id": 31,
      "name": "Cube 11",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1.35,
              "y": -0.25,
              "z": 0.9
            },
            "scale": {
              "x": 0.005,
              "y": 0.005,
              "z": 0.005
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "enabled": true,
            "color": {
              "r": 0.1,
              "g": 0.65,
              "b": 0.8,
              "a": 1
            },
            "opaque": true,
            "cullBackfaces": true
          }
        }
      ]
    }
  ]
}