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.9 KB
Raw Blame
{
  "version": 4,
  "name": "Main",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 10
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 360,
            "isActive": true,
            "priority": 0
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Background",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 1400,
              "y": 820
            },
            "color": {
              "r": 0.04,
              "g": 0.04,
              "b": 0.07,
              "a": 1
            },
            "layer": 0
          }
        }
      ]
    },
    {
      "id": 2,
      "name": "Canvas",
      "parent": null,
      "children": [
        3,
        4
      ],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "Canvas",
          "data": {
            "designResolution": {
              "x": 1280,
              "y": 720
            },
            "scaleMode": 2,
            "backgroundColor": {
              "r": 0,
              "g": 0,
              "b": 0,
              "a": 0
            }
          }
        },
        {
          "type": "UINode",
          "data": {}
        }
      ]
    },
    {
      "id": 3,
      "name": "Title",
      "parent": 2,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "width": {
              "value": 600,
              "unit": 0
            },
            "height": {
              "value": 52,
              "unit": 0
            },
            "insetLeft": {
              "value": 0,
              "unit": 1
            },
            "marginLeft": {
              "value": 340,
              "unit": 0
            },
            "insetTop": {
              "value": 0,
              "unit": 1
            },
            "marginTop": {
              "value": 26,
              "unit": 0
            }
          }
        },
        {
          "type": "Text",
          "data": {
            "content": "Trail Renderer",
            "fontSize": 34,
            "color": {
              "r": 0.95,
              "g": 0.95,
              "b": 1,
              "a": 1
            },
            "align": 1,
            "verticalAlign": 1
          }
        }
      ]
    },
    {
      "id": 4,
      "name": "Hint",
      "parent": 2,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {}
        },
        {
          "type": "UINode",
          "data": {
            "position": 1,
            "width": {
              "value": 900,
              "unit": 0
            },
            "height": {
              "value": 24,
              "unit": 0
            },
            "insetLeft": {
              "value": 0,
              "unit": 1
            },
            "marginLeft": {
              "value": 190,
              "unit": 0
            },
            "insetTop": {
              "value": 0,
              "unit": 1
            },
            "marginTop": {
              "value": 690,
              "unit": 0
            }
          }
        },
        {
          "type": "Text",
          "data": {
            "content": "Move the mouse (cyan chases it)  |  click: dash  |  E freeze comet  |  C clear trails  |  T teleport dasher home",
            "fontSize": 16,
            "color": {
              "r": 0.72,
              "g": 0.76,
              "b": 0.86,
              "a": 0.9
            },
            "align": 1,
            "verticalAlign": 1
          }
        }
      ]
    },
    {
      "id": 5,
      "name": "Comet",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -330,
              "y": 20,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 22,
              "y": 22
            },
            "color": {
              "r": 1,
              "g": 0.85,
              "b": 0.55,
              "a": 1
            },
            "layer": 3
          }
        },
        {
          "type": "TrailRenderer",
          "data": {
            "time": 1.4,
            "minVertexDistance": 4,
            "startWidth": 26,
            "endWidth": 0,
            "startColor": {
              "r": 1,
              "g": 0.72,
              "b": 0.3,
              "a": 0.9
            },
            "endColor": {
              "r": 1,
              "g": 0.2,
              "b": 0.1,
              "a": 0
            },
            "blendMode": 1,
            "layer": 2
          }
        },
        {
          "type": "Comet",
          "data": {}
        }
      ]
    },
    {
      "id": 6,
      "name": "Follower",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 16,
              "y": 16
            },
            "color": {
              "r": 0.55,
              "g": 0.95,
              "b": 1,
              "a": 1
            },
            "layer": 3
          }
        },
        {
          "type": "TrailRenderer",
          "data": {
            "startWidth": 14,
            "endWidth": 2,
            "startColor": {
              "r": 0.45,
              "g": 0.9,
              "b": 1,
              "a": 0.85
            },
            "endColor": {
              "r": 0.15,
              "g": 0.35,
              "b": 1,
              "a": 0
            },
            "layer": 2
          }
        },
        {
          "type": "Follower",
          "data": {}
        }
      ]
    },
    {
      "id": 7,
      "name": "Dasher",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 330,
              "y": -140,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 30,
              "y": 30
            },
            "color": {
              "r": 0.85,
              "g": 0.7,
              "b": 1,
              "a": 1
            },
            "layer": 3
          }
        },
        {
          "type": "TrailRenderer",
          "data": {
            "time": 0.25,
            "minVertexDistance": 2,
            "startWidth": 44,
            "endWidth": 6,
            "startColor": {
              "r": 1,
              "g": 1,
              "b": 1,
              "a": 0.95
            },
            "endColor": {
              "r": 0.6,
              "g": 0.3,
              "b": 1,
              "a": 0
            },
            "blendMode": 1,
            "layer": 2
          }
        },
        {
          "type": "Dasher",
          "data": {}
        }
      ]
    }
  ]
}