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.

19.4 KB
Raw Blame
{
  "version": 4,
  "name": "spire",
  "folders": [
    "Environment",
    "Actors"
  ],
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1248,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 540,
            "isActive": true,
            "priority": 0
          }
        },
        {
          "type": "FollowTarget",
          "data": {
            "target": -1,
            "offsetX": 0,
            "offsetY": 0,
            "deadzone": 40,
            "damping": 0.18
          }
        },
        {
          "type": "CameraBounds",
          "data": {
            "minX": -1536,
            "minY": -1024,
            "maxX": 1536,
            "maxY": 1024
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Terrain",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Environment",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1536,
              "y": 1024,
              "z": 0
            }
          }
        },
        {
          "type": "TilemapLayer",
          "data": {
            "cellSize": {
              "x": 64,
              "y": 64
            },
            "renderLayer": 0,
            "opacity": 1,
            "visible": true,
            "tilesetAsset": "@uuid:cf5ed115-8369-48af-bbd1-163efd25c1aa",
            "collidableTileIds": [
              4,
              5,
              6
            ],
            "chunks": "RVNUTQYAAAAAAAAAAAAAAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAEAAQAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAQAAAAAAAAAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAgACAAIAAgAEAAQAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYAAgACAAYABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAwADAAMAAgACAAIAAgACAAIAAgACAAIAAgACAAMAAwADAAMAAwACAAIAAgACAAIAAgACAAIAAgACAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIAAgACAAMAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAMAAwADAAMAAwADAAMAAwACAAIAAgACAAIAAgACAAIAAwADAAMAAwADAAMAAwADAAIAAAAAAAAABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAAIAAgACAAIAAgACAAIAAgACAAQAAgACAAIAAgACAAYABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAYAAgACAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAYABgACAAIABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgADAAMAAwACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAMAAwADAAMAAwACAAIAAgACAAIAAgACAAIAAgACAAYAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAIABgADAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIAAgAGAAMAAwADAAMAAwADAAMAAwACAAIAAgACAAIAAgACAAYAAwADAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIABgAAAAAAAQAAAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAgACAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgACAAIABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAQABAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAAQAAAAEAAAACAAIAAgACAAIAAgACAAIAAwADAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIAAgADAAMAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAIAAwADAAMAAwADAAMAAwACAAIAAgACAAIAAgACAAIAAgACAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIAAgACAAIAAgADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgADAAMAAwACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIABAAEAAIAAgACAAIAAgACAAIAAgACAAYAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAIAAAABAAAAAwADAAMAAwADAAMAAwADAAIAAgACAAIAAgACAAIABgADAAMAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgAGAAMAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAYAAwADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAIABgADAAMAAwADAAMAAgACAAIAAgACAAIAAgACAAIAAgAGAAMAAwADAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAYAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgACAAIAAgACAAIAAgACAAIAAgACAAIABgAGAAIAAgAGAAIAAgACAAIAAgACAAIAAgACAAIAAgAGAAYAAgACAAYABgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABgAGAAIAAgACAAIAAgACAAIAAgAEAAIAAgACAAIAAgAGAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgA"
          }
        }
      ]
    },
    {
      "id": 90,
      "name": "Area",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Area",
          "data": {
            "nameKey": "area.spire"
          }
        }
      ]
    },
    {
      "id": 40,
      "name": "Gate",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Environment",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1440,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 72,
              "y": 132
            },
            "color": {
              "r": 0.545,
              "g": 0.902,
              "b": 0.918,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Gate",
          "data": {
            "toScene": "moonlit-gallery",
            "radius": 90
          }
        }
      ]
    },
    {
      "id": 80,
      "name": "Pickup_shard_7",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Environment",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -928,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 44,
              "y": 44
            },
            "color": {
              "r": 0.545,
              "g": 0.902,
              "b": 0.918,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Item",
          "data": {
            "kind": "shard"
          }
        }
      ]
    },
    {
      "id": 81,
      "name": "Pickup_ember_8",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Environment",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -224,
              "y": -544,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 44,
              "y": 44
            },
            "color": {
              "r": 0.976,
              "g": 0.706,
              "b": 0.376,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Item",
          "data": {
            "kind": "ember"
          }
        }
      ]
    },
    {
      "id": 45,
      "name": "SparkEmitter",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Environment",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "ParticleEmitter",
          "data": {
            "texture": "@uuid:a036a9cb-e792-40bf-8f6f-9a31b65889a7",
            "shape": 1,
            "shapeRadius": 10,
            "rate": 0,
            "burstCount": 36,
            "burstInterval": 0,
            "duration": 0.06,
            "looping": false,
            "playOnStart": false,
            "maxParticles": 96,
            "lifetimeMin": 0.4,
            "lifetimeMax": 0.7,
            "speedMin": 240,
            "speedMax": 460,
            "startSizeMin": 30,
            "startSizeMax": 52,
            "endSizeMin": 0,
            "endSizeMax": 6,
            "startColor": {
              "r": 1,
              "g": 0.86,
              "b": 0.62,
              "a": 1
            },
            "endColor": {
              "r": 0.98,
              "g": 0.35,
              "b": 0.42,
              "a": 0
            },
            "gravity": {
              "x": 0,
              "y": -260
            },
            "damping": 1.6,
            "layer": 4,
            "blendMode": 1,
            "enabled": true
          }
        }
      ]
    },
    {
      "id": 20,
      "name": "Lyra_Player",
      "parent": null,
      "children": [],
      "visible": true,
      "folder": "Actors",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -1248,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 84,
              "y": 150
            },
            "color": {
              "r": 0.855,
              "g": 0.788,
              "b": 0.976,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Player",
          "data": {
            "speed": 380
          }
        },
        {
          "type": "Facing",
          "data": {
            "x": 1,
            "y": 0
          }
        },
        {
          "type": "Vitality",
          "data": {
            "current": 120,
            "max": 120,
            "invulnerability": 0.5,
            "invulnerable": 0
          }
        },
        {
          "type": "Swing",
          "data": {
            "damage": 30,
            "reach": 110,
            "arcDegrees": 120,
            "cooldown": 0.4,
            "cooldownLeft": 0,
            "pending": false,
            "hits": 4
          }
        },
        {
          "type": "PerceptionTarget",
          "data": {}
        },
        {
          "type": "RigidBody2D",
          "data": {
            "bodyType": 1
          }
        },
        {
          "type": "CircleCollider2D",
          "data": {
            "radius": 0.3,
            "offset": {
              "x": 0,
              "y": -0.5
            },
            "categoryBits": 2,
            "maskBits": 1
          }
        },
        {
          "type": "CharacterController2D",
          "data": {
            "up": {
              "x": 0,
              "y": 1
            },
            "snapLength": 0,
            "maskBits": 1
          }
        }
      ]
    },
    {
      "id": 50,
      "name": "Vesper",
      "parent": null,
      "children": [
        500,
        501
      ],
      "visible": true,
      "folder": "Actors",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 480,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 132,
              "y": 196
            },
            "color": {
              "r": 0.729,
              "g": 0.616,
              "b": 0.949,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Enemy",
          "data": {}
        },
        {
          "type": "Boss",
          "data": {
            "phase": 0
          }
        },
        {
          "type": "Facing",
          "data": {
            "x": -1,
            "y": 0
          }
        },
        {
          "type": "Vitality",
          "data": {
            "current": 480,
            "max": 480,
            "invulnerability": 0.12,
            "invulnerable": 0
          }
        },
        {
          "type": "Swing",
          "data": {
            "damage": 20,
            "reach": 150,
            "arcDegrees": 150,
            "cooldown": 1.1,
            "cooldownLeft": 0,
            "pending": false,
            "hits": 2
          }
        },
        {
          "type": "Perceiver",
          "data": {
            "range": 1100,
            "fovDegrees": 360
          }
        },
        {
          "type": "NavAgent",
          "data": {
            "speed": 175,
            "arriveRadius": 96,
            "repathInterval": 0.35,
            "radius": 42
          }
        },
        {
          "type": "BehaviorTreeAgent",
          "data": {
            "bt": "assets/ai/vesper.esbt"
          }
        },
        {
          "type": "Summoner",
          "data": {
            "cooldown": 9,
            "cooldownLeft": 3,
            "pending": false,
            "remaining": 3,
            "count": 2,
            "prefab": "assets/prefabs/wisp.esprefab"
          }
        },
        {
          "type": "Charge",
          "data": {
            "cooldown": 6,
            "cooldownLeft": 4,
            "pending": false,
            "windup": 0.7,
            "dashSpeed": 900,
            "dashTime": 0.55,
            "state": 0,
            "timer": 0,
            "dirX": 0,
            "dirY": 0
          }
        },
        {
          "type": "RigidBody2D",
          "data": {
            "bodyType": 1
          }
        },
        {
          "type": "CircleCollider2D",
          "data": {
            "radius": 0.42,
            "offset": {
              "x": 0,
              "y": -0.5
            },
            "categoryBits": 4,
            "maskBits": 1
          }
        },
        {
          "type": "CharacterController2D",
          "data": {
            "up": {
              "x": 0,
              "y": 1
            },
            "snapLength": 0,
            "maskBits": 1
          }
        }
      ]
    },
    {
      "id": 500,
      "name": "HealthBar_Back",
      "parent": 50,
      "children": [],
      "visible": true,
      "folder": "Actors",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 112,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 112,
              "y": 14
            },
            "color": {
              "r": 0.078,
              "g": 0.067,
              "b": 0.125,
              "a": 1
            },
            "layer": 3
          }
        }
      ]
    },
    {
      "id": 501,
      "name": "HealthBar_Fill",
      "parent": 50,
      "children": [],
      "visible": true,
      "folder": "Actors",
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 112,
              "z": 1
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 108,
              "y": 10
            },
            "color": {
              "r": 0.906,
              "g": 0.353,
              "b": 0.412,
              "a": 1
            },
            "layer": 3
          }
        },
        {
          "type": "HealthBarFill",
          "data": {
            "width": 108
          }
        }
      ]
    },
    {
      "id": 600,
      "name": "Spawner_20_6",
      "parent": null,
      "children": [],
      "folder": "Actors",
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -224,
              "y": 608,
              "z": 0
            }
          }
        },
        {
          "type": "Spawner",
          "data": {
            "prefab": "assets/prefabs/wisp.esprefab",
            "count": 2,
            "radius": 180
          }
        }
      ]
    },
    {
      "id": 601,
      "name": "Spawner_40_25",
      "parent": null,
      "children": [],
      "folder": "Actors",
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1056,
              "y": -608,
              "z": 0
            }
          }
        },
        {
          "type": "Spawner",
          "data": {
            "prefab": "assets/prefabs/wisp.esprefab",
            "count": 2,
            "radius": 180
          }
        }
      ]
    },
    {
      "id": 602,
      "name": "Drop_petal_16_3",
      "parent": null,
      "children": [],
      "folder": "Environment",
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": -480,
              "y": 800,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 44,
              "y": 44
            },
            "color": {
              "r": 0.937,
              "g": 0.588,
              "b": 0.749,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Item",
          "data": {
            "kind": "petal"
          }
        }
      ]
    },
    {
      "id": 603,
      "name": "Drop_shard_44_15",
      "parent": null,
      "children": [],
      "folder": "Environment",
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 1312,
              "y": 32,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 44,
              "y": 44
            },
            "color": {
              "r": 0.545,
              "g": 0.902,
              "b": 0.918,
              "a": 1
            },
            "layer": 2
          }
        },
        {
          "type": "Item",
          "data": {
            "kind": "shard"
          }
        }
      ]
    }
  ]
}