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.

6.2 KB
Raw Blame
{
  "version": 4,
  "name": "Main",
  "folders": [
    "Lighting",
    "World"
  ],
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 420,
              "z": 900
            },
            "rotation": {
              "x": -0.15643447,
              "y": 0,
              "z": 0,
              "w": 0.98768834
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 0,
            "fov": 55,
            "nearPlane": 10,
            "farPlane": 5000,
            "isActive": true,
            "priority": 0
          }
        }
      ],
      "visible": true
    },
    {
      "id": 1,
      "name": "Sun",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "rotation": {
              "w": 0.83394695,
              "x": -0.52086316,
              "y": 0.18230211,
              "z": 0
            }
          }
        },
        {
          "type": "Light",
          "data": {
            "type": 1,
            "intensity": 0.52,
            "enabled": true,
            "color": {
              "r": 1,
              "g": 0.96,
              "b": 0.9,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "Lighting"
    },
    {
      "id": 2,
      "name": "Sky",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Light",
          "data": {
            "type": 2,
            "intensity": 0.09,
            "enabled": true,
            "color": {
              "r": 0.55,
              "g": 0.66,
              "b": 0.85,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "Lighting"
    },
    {
      "id": 3,
      "name": "Ground",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            },
            "scale": {
              "x": 30,
              "y": 1,
              "z": 30
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:plane",
            "lit": true,
            "opaque": true,
            "cullBackfaces": false,
            "color": {
              "r": 0.3,
              "g": 0.36,
              "b": 0.3,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "World"
    },
    {
      "id": 4,
      "name": "Tower",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -600,
              "y": 300,
              "z": -500
            },
            "scale": {
              "x": 2,
              "y": 6,
              "z": 2
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "color": {
              "r": 0.72,
              "g": 0.55,
              "b": 0.35,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "World"
    },
    {
      "id": 5,
      "name": "Wall",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 500,
              "y": 80.0,
              "z": -700
            },
            "scale": {
              "x": 8,
              "y": 1.6,
              "z": 0.8
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "color": {
              "r": 0.55,
              "g": 0.62,
              "b": 0.7,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "World"
    },
    {
      "id": 6,
      "name": "Plinth",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 700,
              "y": 40.0,
              "z": 400
            },
            "scale": {
              "x": 3,
              "y": 0.8,
              "z": 3
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "color": {
              "r": 0.62,
              "g": 0.45,
              "b": 0.55,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "World"
    },
    {
      "id": 7,
      "name": "Steps",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -700,
              "y": 25.0,
              "z": 600
            },
            "scale": {
              "x": 4,
              "y": 0.5,
              "z": 2
            }
          }
        },
        {
          "type": "MeshRenderer",
          "data": {
            "mesh": "builtin:cube",
            "lit": true,
            "opaque": true,
            "cullBackfaces": true,
            "color": {
              "r": 0.5,
              "g": 0.66,
              "b": 0.5,
              "a": 1
            }
          }
        }
      ],
      "visible": true,
      "folder": "World"
    }
  ]
}