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": "HUD TEXT over a perspective camera. Glyph quads are submitted by the SDK, not collected by the engine, so they are the one screen primitive that could be left behind in the camera's list while the panel under them moved to the overlay \u2014 and the symptom would be a HUD with a hole in it rather than no HUD at all.",
"entities": [
{
"id": 0,
"name": "Camera",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 300
}
}
},
{
"type": "Camera",
"data": {
"projectionType": 0,
"fov": 60,
"nearPlane": 0.1,
"farPlane": 1000,
"isActive": true,
"priority": 0
}
}
]
},
{
"id": 2,
"name": "Canvas",
"parent": null,
"children": [
3
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 1920,
"y": 1080
},
"scaleMode": 1
}
},
{
"type": "UINode",
"data": {}
}
]
},
{
"id": 3,
"name": "Panel",
"parent": 2,
"children": [
4
],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 0
},
"insetLeft": {
"value": 0,
"unit": 0
},
"width": {
"value": 100,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": {
"r": 0,
"g": 0,
"b": 0.6,
"a": 1
},
"enabled": true
}
}
]
},
{
"id": 4,
"name": "Label",
"parent": 3,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"insetTop": {
"value": 0,
"unit": 0
},
"insetLeft": {
"value": 0,
"unit": 0
},
"width": {
"value": 100,
"unit": 1
},
"height": {
"value": 100,
"unit": 1
}
}
},
{
"type": "Text",
"data": {
"content": "IIIIIIII",
"fontFamily": "sans-serif",
"fontSize": 520,
"color": {
"r": 1,
"g": 1,
"b": 0,
"a": 1
},
"align": 1,
"verticalAlign": 1,
"wordWrap": false
}
}
]
}
]
}