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": 540,
"isActive": true,
"priority": 0
}
}
],
"visible": true
},
{
"id": 1,
"name": "Background",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": -1
}
}
},
{
"type": "Sprite",
"data": {
"texture": "@uuid:78c53bf7-88b8-481d-805c-a443c2d06076",
"size": {
"x": 600,
"y": 1080
},
"layer": -1,
"drawMode": 2,
"tileSize": {
"x": 256,
"y": 256
}
}
}
],
"visible": true
},
{
"id": 2,
"name": "Player",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -420,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"texture": "@uuid:92f1ab5f-28f4-4b95-bb82-7182fdb33494",
"size": {
"x": 66,
"y": 50
}
}
},
{
"type": "Player",
"data": {
"speed": 400
}
},
{
"type": "Hull",
"data": {
"value": 3,
"maxValue": 3
}
}
],
"visible": true
},
{
"id": 10,
"name": "HUD",
"parent": null,
"children": [
11,
12,
13,
14,
15
],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "Canvas",
"data": {
"designResolution": {
"x": 600,
"y": 1080
},
"scaleMode": 2
}
},
{
"type": "UINode",
"data": {}
}
],
"visible": true
},
{
"id": 11,
"name": "ScoreText",
"parent": 10,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 200.0,
"unit": 0
},
"insetLeft": {
"value": 0.0,
"unit": 1
},
"marginLeft": {
"value": 20.0,
"unit": 0
},
"height": {
"value": 40.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 40.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "SCORE: 0",
"fontSize": 28,
"color": {
"r": 0,
"g": 0.86,
"b": 1,
"a": 1
},
"align": 0,
"verticalAlign": 0
}
},
{
"type": "ScoreDisplay",
"data": {}
}
],
"visible": true
},
{
"id": 12,
"name": "Heart1",
"parent": 10,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 216,
"y": 520,
"z": 0
}
}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 24.0,
"unit": 0
},
"insetLeft": {
"value": 100.0,
"unit": 1
},
"marginLeft": {
"value": -108.0,
"unit": 0
},
"height": {
"value": 24.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 20.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 2,
"texture": "@uuid:5b21b6a6-dffa-4256-872a-36f4e4549408",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
},
{
"type": "HealthHeart",
"data": {}
}
],
"visible": true
},
{
"id": 13,
"name": "Heart2",
"parent": 10,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 248,
"y": 520,
"z": 0
}
}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 24.0,
"unit": 0
},
"insetLeft": {
"value": 100.0,
"unit": 1
},
"marginLeft": {
"value": -76.0,
"unit": 0
},
"height": {
"value": 24.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 20.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 2,
"texture": "@uuid:5b21b6a6-dffa-4256-872a-36f4e4549408",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
},
{
"type": "HealthHeart",
"data": {}
}
],
"visible": true
},
{
"id": 14,
"name": "Heart3",
"parent": 10,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 280,
"y": 520,
"z": 0
}
}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 24.0,
"unit": 0
},
"insetLeft": {
"value": 100.0,
"unit": 1
},
"marginLeft": {
"value": -44.0,
"unit": 0
},
"height": {
"value": 24.0,
"unit": 0
},
"insetTop": {
"value": 0.0,
"unit": 1
},
"marginTop": {
"value": 20.0,
"unit": 0
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 2,
"texture": "@uuid:5b21b6a6-dffa-4256-872a-36f4e4549408",
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
},
{
"type": "HealthHeart",
"data": {}
}
],
"visible": true
},
{
"id": 15,
"name": "GameOverText",
"parent": 10,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "UINode",
"data": {
"position": 1,
"width": {
"value": 400.0,
"unit": 0
},
"insetLeft": {
"value": 50.0,
"unit": 1
},
"marginLeft": {
"value": -200.0,
"unit": 0
},
"height": {
"value": 120.0,
"unit": 0
},
"insetTop": {
"value": 50.0,
"unit": 1
},
"marginTop": {
"value": -60.0,
"unit": 0
}
}
},
{
"type": "Text",
"data": {
"content": "",
"fontSize": 36,
"color": {
"r": 1,
"g": 0.24,
"b": 0.24,
"a": 1
},
"align": 1,
"verticalAlign": 1
}
},
{
"type": "GameOverScreen",
"data": {}
}
],
"visible": true
},
{
"id": 16,
"name": "HullBarBack",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -110,
"y": -500,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 220,
"y": 14
},
"pivot": {
"x": 0,
"y": 0.5
},
"layer": 10,
"order": 0,
"color": {
"r": 0.1,
"g": 0.12,
"b": 0.18,
"a": 0.85
}
}
}
]
},
{
"id": 17,
"name": "HullBarMask",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -110,
"y": -500,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 220,
"y": 14
},
"pivot": {
"x": 0,
"y": 0.5
},
"layer": 10,
"order": 1
}
},
{
"type": "SpriteMask",
"data": {}
},
{
"type": "HullBarMask",
"data": {}
}
]
},
{
"id": 18,
"name": "HullBarFill",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -110,
"y": -500,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 220,
"y": 14
},
"pivot": {
"x": 0,
"y": 0.5
},
"layer": 10,
"order": 2,
"color": {
"r": 0.35,
"g": 0.95,
"b": 0.6,
"a": 1
},
"maskInteraction": 1
}
}
]
},
{
"id": 19,
"name": "HullBarLost",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -110,
"y": -500,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 220,
"y": 14
},
"pivot": {
"x": 0,
"y": 0.5
},
"layer": 10,
"order": 3,
"color": {
"r": 0.85,
"g": 0.22,
"b": 0.28,
"a": 1
},
"maskInteraction": 2
}
}
]
}
]
}