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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
{
"version": "2",
"name": "Wisp",
"rootEntityId": "0",
"entities": [
{
"prefabEntityId": "0",
"name": "Wisp_called",
"parent": null,
"children": [
"1",
"2"
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 64,
"y": 96
},
"color": {
"r": 0.412,
"g": 0.812,
"b": 0.902,
"a": 1
},
"layer": 2
}
},
{
"type": "Enemy",
"data": {}
},
{
"type": "Facing",
"data": {
"x": -1,
"y": 0
}
},
{
"type": "Vitality",
"data": {
"current": 45,
"max": 45,
"invulnerability": 0.2,
"invulnerable": 0
}
},
{
"type": "Swing",
"data": {
"damage": 10,
"reach": 76,
"arcDegrees": 160,
"cooldown": 1.2,
"cooldownLeft": 0,
"pending": false,
"hits": 2
}
},
{
"type": "Perceiver",
"data": {
"range": 420,
"fovDegrees": 360
}
},
{
"type": "NavAgent",
"data": {
"speed": 165,
"arriveRadius": 48,
"repathInterval": 0.4,
"radius": 26
}
},
{
"type": "BehaviorTreeAgent",
"data": {
"bt": "assets/ai/wisp.esbt"
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 1
}
},
{
"type": "CircleCollider2D",
"data": {
"radius": 0.26,
"offset": {
"x": 0,
"y": -0.3
},
"categoryBits": 4,
"maskBits": 1
}
}
]
},
{
"prefabEntityId": "1",
"name": "HealthBar_Back",
"parent": "0",
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 66,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 76,
"y": 12
},
"color": {
"r": 0.078,
"g": 0.067,
"b": 0.125,
"a": 1
},
"layer": 3
}
}
]
},
{
"prefabEntityId": "2",
"name": "HealthBar_Fill",
"parent": "0",
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 66,
"z": 1
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 72,
"y": 8
},
"color": {
"r": 0.906,
"g": 0.353,
"b": 0.412,
"a": 1
},
"layer": 3
}
},
{
"type": "HealthBarFill",
"data": {
"width": 72
}
}
]
}
]
}