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",
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 200
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 1,
"orthoSize": 300,
"isActive": true,
"priority": 0
}
}
]
},
{
"id": 1,
"name": "Ground",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -200,
"y": 0,
"z": -200
},
"scale": {
"x": 400,
"y": 400,
"z": 1
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "/scenes/shadow-quad.esmesh",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"lit": true,
"opaque": true,
"enabled": true
}
}
]
},
{
"id": 2,
"name": "Blocker",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -200,
"y": 0,
"z": -150
},
"scale": {
"x": 40,
"y": 40,
"z": 1
}
}
},
{
"type": "MeshRenderer",
"data": {
"mesh": "/scenes/shadow-quad.esmesh",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"lit": true,
"opaque": true,
"enabled": true
}
}
]
},
{
"id": 3,
"name": "Lit",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 200,
"y": 0,
"z": -100
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 300,
"y": 300
},
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"material": "/scenes/mat-lit/lit.esmaterial"
}
}
]
},
{
"id": 4,
"name": "Wall",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 150,
"y": 0,
"z": -100
}
}
},
{
"type": "ShadowCaster2D",
"data": {
"size": {
"x": 30,
"y": 200
},
"enabled": true
}
}
]
},
{
"id": 5,
"name": "Light",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 100
}
}
},
{
"type": "Light",
"data": {
"type": 0,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"intensity": 1,
"radius": 900,
"shadowSoftness": 0,
"meshShadows": true
}
}
]
}
]
}