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.6 KB
Raw Blame
{
 "version": 4,
 "name": "camera-split-3d",
 "entities": [
  {
   "id": 0,
   "name": "Left",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": -5000,
       "y": 400,
       "z": 0
      },
      "rotation": {
       "x": -0.7071067811865476,
       "y": 0,
       "z": 0,
       "w": 0.7071067811865476
      }
     }
    },
    {
     "type": "Camera",
     "data": {
      "projectionType": 1,
      "orthoSize": 100,
      "nearPlane": 1,
      "farPlane": 2000,
      "isActive": true,
      "priority": 0,
      "viewport": {
       "x": 0,
       "y": 0,
       "z": 0.5,
       "w": 1
      }
     }
    }
   ]
  },
  {
   "id": 2,
   "name": "Left Floor",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": -5000,
       "y": 0,
       "z": 0
      },
      "scale": {
       "x": 4,
       "y": 0.1,
       "z": 4
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "mesh": "builtin:cube",
      "color": {
       "r": 1,
       "g": 0,
       "b": 0,
       "a": 1
      },
      "lit": false,
      "opaque": true,
      "cullBackfaces": true,
      "enabled": true
     }
    }
   ]
  },
  {
   "id": 1,
   "name": "Right",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 5000,
       "y": 400,
       "z": 0
      },
      "rotation": {
       "x": -0.7071067811865476,
       "y": 0,
       "z": 0,
       "w": 0.7071067811865476
      }
     }
    },
    {
     "type": "Camera",
     "data": {
      "projectionType": 1,
      "orthoSize": 100,
      "nearPlane": 1,
      "farPlane": 2000,
      "isActive": true,
      "priority": 1,
      "viewport": {
       "x": 0.5,
       "y": 0,
       "z": 0.5,
       "w": 1
      }
     }
    }
   ]
  },
  {
   "id": 3,
   "name": "Right Floor",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 5000,
       "y": 0,
       "z": 0
      },
      "scale": {
       "x": 4,
       "y": 0.1,
       "z": 4
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "mesh": "builtin:cube",
      "color": {
       "r": 0,
       "g": 1,
       "b": 0,
       "a": 1
      },
      "lit": false,
      "opaque": true,
      "cullBackfaces": true,
      "enabled": true
     }
    }
   ]
  }
 ]
}