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": "Main",
"folders": [
"Lighting",
"World"
],
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 380,
"z": 900
},
"rotation": {
"x": -0.15643447,
"y": 0,
"z": 0,
"w": 0.98768834
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 0,
"fov": 55,
"nearPlane": 10,
"farPlane": 20000,
"isActive": true,
"priority": 0
}
},
{
"type": "PostProcessVolume",
"data": {
"isGlobal": true,
"priority": 0,
"weight": 1,
"effects": [
{
"type": "skyAtmosphere",
"enabled": true,
"uniforms": {
"u_intensity": 1.0,
"u_lightScene": 1,
"u_clouds": 0.3
}
},
{
"type": "heightFog",
"enabled": true,
"uniforms": {
"u_density": 0.0002,
"u_heightFalloff": 0.002,
"u_baseHeight": 0,
"u_inscatter": 0.4,
"u_skyFog": 0.7
},
"colors": {
"u_fogColor": {
"r": 0.7,
"g": 0.78,
"b": 0.88,
"a": 1
}
}
},
{
"type": "gtao",
"enabled": true,
"uniforms": {
"u_radius": 120,
"u_intensity": 0.8
}
},
{
"type": "autoExposure",
"enabled": true,
"uniforms": {
"u_bias": 0.15,
"u_minEV": -2,
"u_maxEV": 2
}
},
{
"type": "bloom",
"enabled": true,
"uniforms": {
"u_threshold": 1.0,
"u_intensity": 0.3,
"u_radius": 1.2
}
},
{
"type": "colorGrade",
"enabled": true,
"uniforms": {
"u_exposure": 0,
"u_contrast": 1.06,
"u_saturation": 1.15,
"u_temperature": 0,
"u_tint": 0
}
},
{
"type": "vignette",
"enabled": true,
"uniforms": {
"u_intensity": 0.2,
"u_softness": 0.8
}
},
{
"type": "fxaa",
"enabled": true,
"uniforms": {
"u_intensity": 1
}
}
]
}
}
],
"visible": true
},
{
"id": 1,
"name": "Sun",
"parent": null,
"children": [],
"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": 3.0,
"enabled": true,
"color": {
"r": 1,
"g": 0.96,
"b": 0.9,
"a": 1
},
"meshShadows": true,
"shadowExtent": 1400,
"shadowSoftness": 1.5
}
}
],
"visible": true,
"folder": "Lighting"
},
{
"id": 2,
"name": "Sky",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "Light",
"data": {
"type": 2,
"intensity": 1.0,
"enabled": true,
"color": {
"r": 0.55,
"g": 0.66,
"b": 0.85,
"a": 1
}
}
}
],
"visible": true,
"folder": "Lighting"
},
{
"id": 3,
"name": "Ground",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"scale": {
"x": 400,
"y": 1,
"z": 400
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:plane",
"lit": true,
"opaque": true,
"cullBackfaces": false,
"color": {
"r": 0.3,
"g": 0.36,
"b": 0.3,
"a": 1
}
}
}
],
"visible": true,
"folder": "World"
},
{
"id": 4,
"name": "GroundBody",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -40,
"z": 0
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 4000,
"y": 40,
"z": 4000
},
"friction": 0.6
}
}
],
"visible": true,
"folder": "World"
},
{
"id": 5,
"name": "Block",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -230,
"y": 60,
"z": -80
},
"scale": {
"x": 1.2,
"y": 1.2,
"z": 1.2
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.42,
"g": 0.34,
"b": 0.28,
"a": 1
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 60,
"y": 60,
"z": 60
},
"friction": 0.6
}
}
],
"visible": true,
"folder": "World"
},
{
"id": 6,
"name": "Pillar",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 210,
"y": 140,
"z": -170
},
"scale": {
"x": 0.8,
"y": 2.8,
"z": 0.8
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.36,
"g": 0.38,
"b": 0.46,
"a": 1
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 40,
"y": 140,
"z": 40
},
"friction": 0.6
}
}
],
"visible": true,
"folder": "World"
},
{
"id": 7,
"name": "Step",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 170,
"y": 25,
"z": 130
},
"scale": {
"x": 3.0,
"y": 0.5,
"z": 1.6
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:cube",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.34,
"g": 0.3,
"b": 0.26,
"a": 1
}
}
},
{
"type": "RigidBody3D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider3D",
"data": {
"halfExtents": {
"x": 150,
"y": 25,
"z": 80
},
"friction": 0.6
}
}
],
"visible": true,
"folder": "World"
},
{
"id": 8,
"name": "Hero",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 80,
"z": 170
},
"scale": {
"x": 1.6,
"y": 1.6,
"z": 1.6
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "builtin:capsule",
"lit": true,
"opaque": true,
"cullBackfaces": true,
"color": {
"r": 0.85,
"g": 0.62,
"b": 0.3,
"a": 1
}
}
},
{
"type": "CharacterController3D",
"data": {
"radius": 40,
"halfHeight": 40,
"stepHeight": 45,
"snapDown": 50
}
}
],
"visible": true
}
]
}