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": 4,
"name": "arena",
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 200,
"z": 500
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 0,
"fov": 55,
"nearPlane": 10,
"farPlane": 4000,
"isActive": true,
"priority": 0
}
},
{
"type": "ThirdPersonCamera",
"data": {
"target": 7,
"distance": 420,
"pitch": 18
}
},
{
"type": "PostProcessVolume",
"data": {
"isGlobal": true,
"priority": 0,
"weight": 1,
"effects": [
{
"type": "ssao",
"enabled": true,
"uniforms": {
"u_radius": 70,
"u_intensity": 1,
"u_bias": 0.12,
"u_power": 1.6
}
}
]
}
}
]
},
{
"id": 1,
"name": "Ground",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -20,
"z": -100
},
"scale": {
"x": 24,
"y": 0.4,
"z": 20
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 1200,
"y": 20,
"z": 1000
},
"friction": 0.6
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.3,
"g": 0.34,
"b": 0.3,
"a": 1
}
}
}
]
},
{
"id": 2,
"name": "Barrier",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 45,
"z": -100
},
"scale": {
"x": 4,
"y": 0.9,
"z": 0.6
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0,
"layer": 2
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 200,
"y": 45,
"z": 30
},
"friction": 0.6
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.5,
"g": 0.36,
"b": 0.3,
"a": 1
}
}
}
]
},
{
"id": 3,
"name": "Perch",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 400,
"y": 45,
"z": 150
},
"scale": {
"x": 2.4,
"y": 0.9,
"z": 2.4
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 120,
"y": 45,
"z": 120
},
"friction": 0.6
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.42,
"g": 0.44,
"b": 0.52,
"a": 1
}
}
}
]
},
{
"id": 4,
"name": "NavVolume",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 125,
"z": 0
}
}
},
{
"type": "NavVolume",
"data": {
"halfExtents": {
"x": 800,
"y": 200,
"z": 600
},
"cellSize": 25,
"cellHeight": 10,
"agentHeight": 120,
"agentRadius": 30,
"stepHeight": 40
}
}
]
},
{
"id": 5,
"name": "Sun",
"parent": null,
"children": [],
"visible": true,
"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": 1.05,
"enabled": true,
"color": {
"r": 1,
"g": 0.96,
"b": 0.9,
"a": 1
}
}
}
]
},
{
"id": 6,
"name": "Sky",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "Light",
"data": {
"type": 2,
"intensity": 0.42,
"enabled": true,
"color": {
"r": 0.55,
"g": 0.66,
"b": 0.85,
"a": 1
}
}
}
]
},
{
"id": 7,
"name": "Player",
"parent": null,
"children": [
8,
9,
10,
11
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 60,
"z": 150
}
}
},
{
"type": "CharacterController3D",
"data": {
"radius": 30,
"halfHeight": 30,
"stepHeight": 40,
"snapDown": 50
}
},
{
"type": "ThirdPersonController",
"data": {
"camera": 0,
"moveSpeed": 320,
"jumpSpeed": 520,
"idleThreshold": 8
}
},
{
"type": "Animator",
"data": {
"controller": "assets/models/locomotion.esanimator",
"currentState": "",
"enabled": true
}
},
{
"type": "AnimatorRootMotion",
"data": {
"enabled": true
}
},
{
"type": "MeleeAttack",
"data": {
"radius": 110,
"damage": 25,
"anchor": 12
}
},
{
"type": "Health",
"data": {
"current": 100,
"max": 100
}
},
{
"type": "PerceptionTarget",
"data": {}
}
]
},
{
"id": 8,
"name": "Bone0",
"parent": 7,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 9,
"name": "Bone1",
"parent": 7,
"children": [
12
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 60,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 10,
"name": "Body",
"parent": 7,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "assets/models/skinned-fade.esmesh",
"lit": true,
"opaque": true,
"color": {
"r": 0.35,
"g": 0.75,
"b": 0.45,
"a": 1
}
}
},
{
"type": "MeshSkin",
"data": {
"joints": [
8,
9
]
}
}
]
},
{
"id": 11,
"name": "FootDust",
"parent": 7,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -78,
"z": 0
}
}
},
{
"type": "ParticleEmitter",
"data": {
"rate": 0,
"burstCount": 12,
"burstInterval": 0,
"duration": 0.05,
"looping": false,
"playOnStart": false,
"maxParticles": 64,
"lifetimeMin": 0.6,
"lifetimeMax": 1,
"shape": 5,
"shapeRadius": 18,
"speedMin": 18,
"speedMax": 42,
"startSizeMin": 10,
"startSizeMax": 16,
"endSizeMin": 22,
"endSizeMax": 30,
"sizeEasing": 2,
"startColor": {
"r": 0.74,
"g": 0.68,
"b": 0.56,
"a": 0.35
},
"endColor": {
"r": 0.66,
"g": 0.62,
"b": 0.54,
"a": 0
},
"gravity": {
"x": 0,
"y": 26,
"z": 0
},
"damping": 1.6,
"blendMode": 0,
"layer": 0,
"simulationSpace": 0
}
}
]
},
{
"id": 12,
"name": "HitAnchor",
"parent": 9,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 80,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 13,
"name": "Enemy",
"parent": null,
"children": [
14,
15,
16
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 60,
"z": -350
}
}
},
{
"type": "CharacterController3D",
"data": {
"radius": 30,
"halfHeight": 30,
"stepHeight": 40,
"snapDown": 50
}
},
{
"type": "NavAgent",
"data": {
"speed": 320,
"radius": 30,
"arriveRadius": 40,
"repathInterval": 0.35
}
},
{
"type": "Perceiver",
"data": {
"range": 420,
"fovDegrees": 360,
"losLayers": 1
}
},
{
"type": "Perception",
"data": {}
},
{
"type": "Hunter",
"data": {
"attackRange": 100,
"attackInterval": 1.6
}
},
{
"type": "Animator",
"data": {
"controller": "assets/models/locomotion.esanimator",
"currentState": "",
"enabled": true
}
},
{
"type": "MeleeAttack",
"data": {
"radius": 110,
"damage": 20,
"anchor": 18
}
},
{
"type": "Health",
"data": {
"current": 25,
"max": 25
}
}
]
},
{
"id": 14,
"name": "Bone0",
"parent": 13,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 15,
"name": "Bone1",
"parent": 13,
"children": [
18
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 60,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 16,
"name": "EnemyBody",
"parent": 13,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "assets/models/skinned-fade.esmesh",
"lit": true,
"opaque": true,
"color": {
"r": 0.82,
"g": 0.32,
"b": 0.3,
"a": 1
}
}
},
{
"type": "MeshSkin",
"data": {
"joints": [
14,
15
]
}
}
]
},
{
"id": 18,
"name": "EnemyHitAnchor",
"parent": 15,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 80,
"y": 0,
"z": 0
}
}
}
]
},
{
"id": 19,
"name": "HitSpark",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -4000,
"z": 0
}
}
},
{
"type": "ParticleEmitter",
"data": {
"rate": 0,
"burstCount": 18,
"burstInterval": 0,
"duration": 0.05,
"looping": false,
"playOnStart": false,
"maxParticles": 72,
"lifetimeMin": 0.5,
"lifetimeMax": 0.9,
"shape": 4,
"shapeRadius": 12,
"speedMin": 90,
"speedMax": 240,
"startSizeMin": 8,
"startSizeMax": 14,
"endSizeMin": 0,
"endSizeMax": 4,
"startColor": {
"r": 1.0,
"g": 0.82,
"b": 0.45,
"a": 1.0
},
"endColor": {
"r": 0.95,
"g": 0.32,
"b": 0.2,
"a": 0.0
},
"gravity": {
"x": 0,
"y": -320,
"z": 0
},
"damping": 2.0,
"blendMode": 1,
"layer": 0,
"simulationSpace": 0
}
}
]
}
]
}