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.

10.4 KB
Raw Blame
{
  "version": 4,
  "name": "OcclusionCost",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 0,
            "fov": 60.0,
            "nearPlane": 1,
            "farPlane": 20000.0,
            "isActive": true,
            "priority": 0
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Wall",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": -200
            },
            "scale": {
              "x": 1.5,
              "y": 4.0,
              "z": 0.1
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        },
        {
          "type": "Occluder",
          "data": {
            "halfExtents": {
              "x": 75,
              "y": 200,
              "z": 5
            },
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "Behind1",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -150,
              "y": 150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 3,
      "name": "Behind2",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 4,
      "name": "Behind3",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 150,
              "y": 150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 5,
      "name": "Behind4",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -150,
              "y": 0,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 6,
      "name": "Behind5",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 7,
      "name": "Behind6",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 150,
              "y": 0,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 8,
      "name": "Behind7",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -150,
              "y": -150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 9,
      "name": "Behind8",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": -150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 10,
      "name": "Behind9",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 150,
              "y": -150,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 1,
              "g": 0,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 11,
      "name": "Beside1",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -290,
              "y": 0,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 0,
              "g": 1,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 12,
      "name": "Beside2",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 290,
              "y": 0,
              "z": -600
            },
            "scale": {
              "x": 0.5,
              "y": 0.5,
              "z": 0.5
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "color": {
              "r": 0,
              "g": 1,
              "b": 0,
              "a": 1
            },
            "lit": false,
            "opaque": true,
            "cullBackfaces": true,
            "enabled": true
          }
        }
      ]
    }
  ]
}