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": "Screen elements carrying z +/-10000. A screen root's z is layout STORAGE and nothing else: it must not decide whether an element is drawn (a projection that clips it), nor which of two overlapping ones is on top (an order taken from a depth rather than from the tree).",
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 10
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 1,
"orthoSize": 540,
"isActive": true,
"priority": 0
}
}
]
},
{
"id": 1,
"name": "FarBehind",
"parent": null,
"children": [
101
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": -10000
}
}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1
}
},
{
"type": "UINode",
"data": {}
}
]
},
{
"id": 101,
"name": "FarBehindFill",
"parent": 1,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 1
},
"insetLeft": {
"value": 0,
"unit": 1
},
"width": {
"value": 33,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 1,
"g": 0,
"b": 0,
"a": 1
},
"enabled": true
}
}
]
},
{
"id": 2,
"name": "AtZero",
"parent": null,
"children": [
102
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1
}
},
{
"type": "UINode",
"data": {}
}
]
},
{
"id": 102,
"name": "AtZeroFill",
"parent": 2,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 1
},
"insetLeft": {
"value": 33,
"unit": 1
},
"width": {
"value": 33,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0,
"g": 1,
"b": 0,
"a": 1
},
"enabled": true
}
}
]
},
{
"id": 3,
"name": "FarAhead",
"parent": null,
"children": [
103
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 10000
}
}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1
}
},
{
"type": "UINode",
"data": {}
}
]
},
{
"id": 103,
"name": "FarAheadFill",
"parent": 3,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 1
},
"insetLeft": {
"value": 66,
"unit": 1
},
"width": {
"value": 34,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0,
"g": 0,
"b": 1,
"a": 1
},
"enabled": true
}
}
]
},
{
"id": 4,
"name": "LastSibling",
"parent": null,
"children": [
104
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": -20000
}
}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1
}
},
{
"type": "UINode",
"data": {}
}
]
},
{
"id": 104,
"name": "LastSiblingFill",
"parent": 4,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 33,
"unit": 1
},
"insetLeft": {
"value": 0,
"unit": 1
},
"width": {
"value": 33,
"unit": 1
},
"height": {
"value": 34,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
},
"enabled": true
}
}
]
}
]
}