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": [],
"components": [
{
"type": "Transform",
"data": {
"position": { "x": 0, "y": 0, "z": 10 }
}
},
{
"type": "Camera",
"data": {
"projectionType": 1,
"orthoSize": 300,
"isActive": true,
"priority": 0
}
}
],
"visible": true
},
{
"id": 1,
"name": "Player",
"parent": null,
"children": [],
"components": [
{ "type": "Transform", "data": { "position": { "x": 0, "y": -60, "z": 0 } } },
{ "type": "Sprite", "data": { "size": { "x": 40, "y": 40 }, "color": { "r": 0.28, "g": 0.54, "b": 0.92, "a": 1 } } },
{ "type": "Player", "data": {} }
],
"visible": true
},
{
"id": 2,
"name": "Canvas",
"parent": null,
"children": [3],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "Canvas",
"data": {
"designResolution": { "x": 800, "y": 600 },
"scaleMode": 2
}
},
{ "type": "UINode", "data": {} }
],
"visible": true
},
{
"id": 3,
"name": "Panel",
"parent": 2,
"children": [4, 5, 6, 7],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": {
"position": 1,
"width": { "value": 480, "unit": 0 },
"height": { "value": 178, "unit": 0 },
"insetLeft": { "value": 50, "unit": 1 },
"insetTop": { "value": 16, "unit": 0 },
"marginLeft": { "value": -240, "unit": 0 }
}
},
{
"type": "FlexContainer",
"data": {
"direction": 1,
"justifyContent": 0,
"alignItems": 3,
"gap": { "x": 0, "y": 10 },
"padding": { "left": 16, "top": 16, "right": 16, "bottom": 16 }
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"color": { "r": 0.16, "g": 0.16, "b": 0.18, "a": 0.92 },
"enabled": true
}
}
],
"visible": true
},
{
"id": 4,
"name": "ScoreLabel",
"parent": 3,
"children": [],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": { "height": { "value": 26, "unit": 0 } }
},
{
"type": "Text",
"data": {
"content": "Score: 0",
"fontSize": 18,
"bold": true,
"color": { "r": 1, "g": 1, "b": 1, "a": 1 },
"align": 0,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 5,
"name": "StatusLabel",
"parent": 3,
"children": [],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": { "height": { "value": 18, "unit": 0 } }
},
{
"type": "Text",
"data": {
"content": "Move with the arrow keys, collect coins, then Save.",
"fontSize": 12,
"color": { "r": 0.72, "g": 0.75, "b": 0.8, "a": 1 },
"align": 0,
"verticalAlign": 1
}
}
],
"visible": true
},
{
"id": 6,
"name": "SaveRow",
"parent": 3,
"children": [],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": { "height": { "value": 36, "unit": 0 } }
},
{
"type": "FlexContainer",
"data": { "direction": 0, "justifyContent": 0, "alignItems": 1, "gap": { "x": 10, "y": 0 } }
}
],
"visible": true
},
{
"id": 7,
"name": "PrefRow",
"parent": 3,
"children": [8],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": { "height": { "value": 36, "unit": 0 } }
},
{
"type": "FlexContainer",
"data": { "direction": 0, "justifyContent": 3, "alignItems": 1 }
}
],
"visible": true
},
{
"id": 8,
"name": "PrefLabel",
"parent": 7,
"children": [],
"components": [
{ "type": "Transform", "data": {} },
{
"type": "UINode",
"data": { "flexGrow": 1, "alignSelf": 4 }
},
{
"type": "Text",
"data": {
"content": "Player color (raw Storage pref)",
"fontSize": 13,
"color": { "r": 1, "g": 1, "b": 1, "a": 1 },
"align": 0,
"verticalAlign": 1
}
}
],
"visible": true
}
]
}