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.

3.9 KB
Raw Blame
{
  "version": 4,
  "name": "Main",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 10
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 300,
            "isActive": true,
            "priority": 0
          }
        }
      ],
      "visible": true
    },
    {
      "id": 1,
      "name": "Ground",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": -84,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 700,
              "y": 16
            },
            "color": {
              "r": 0.16,
              "g": 0.19,
              "b": 0.26,
              "a": 1
            },
            "layer": 1
          }
        }
      ],
      "visible": true
    },
    {
      "id": 2,
      "name": "Player",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": -27,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 72,
              "y": 98
            },
            "layer": 5,
            "texture": "assets/textures/idle_0.png"
          }
        },
        {
          "type": "SpriteAnimator",
          "data": {
            "clip": "assets/animations/idle.esanim"
          }
        },
        {
          "type": "Animator",
          "data": {
            "controller": "assets/animations/player.esanimator"
          }
        },
        {
          "type": "Player",
          "data": {}
        }
      ],
      "visible": true
    },
    {
      "id": 3,
      "name": "Bystander",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -260,
              "y": -27,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 72,
              "y": 98
            },
            "color": {
              "r": 0.78,
              "g": 0.82,
              "b": 0.88,
              "a": 1
            },
            "layer": 4,
            "texture": "assets/textures/idle_0.png"
          }
        },
        {
          "type": "SpriteAnimator",
          "data": {
            "clip": "assets/animations/idle.esanim",
            "speed": 0.75
          }
        }
      ],
      "visible": true
    },
    {
      "id": 4,
      "name": "Pacer",
      "parent": null,
      "children": [],
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 260,
              "y": -27,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 72,
              "y": 98
            },
            "color": {
              "r": 0.78,
              "g": 0.82,
              "b": 0.88,
              "a": 1
            },
            "flipX": true,
            "layer": 4,
            "texture": "assets/textures/walk_0.png"
          }
        },
        {
          "type": "SpriteAnimator",
          "data": {
            "clip": "assets/animations/walk.esanim",
            "speed": 1.25
          }
        }
      ],
      "visible": true
    }
  ]
}