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": "Showcase",
"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": "Ground",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": -260,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 780,
"y": 20
},
"color": {
"r": 0.4,
"g": 0.4,
"b": 0.45,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 3.9,
"y": 0.1
}
}
}
],
"visible": true
},
{
"id": 2,
"name": "LeftWall",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -390,
"y": -20,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 20,
"y": 520
},
"color": {
"r": 0.4,
"g": 0.4,
"b": 0.45,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.1,
"y": 2.6
}
}
}
],
"visible": true
},
{
"id": 3,
"name": "RightWall",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 390,
"y": -20,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 20,
"y": 520
},
"color": {
"r": 0.4,
"g": 0.4,
"b": 0.45,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.1,
"y": 2.6
}
}
}
],
"visible": true
},
{
"id": 4,
"name": "OneWayLedge",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -170,
"y": 30,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 300,
"y": 16
},
"color": {
"r": 0.3,
"g": 0.8,
"b": 0.9,
"a": 0.55
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 1.5,
"y": 0.08
}
}
},
{
"type": "OneWayPlatform2D",
"data": {
"normal": {
"x": 0,
"y": 1
},
"enabled": true
}
}
],
"visible": true
},
{
"id": 5,
"name": "ShuttleAnchor",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 150,
"y": -90,
"z": 0
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
}
],
"visible": true
},
{
"id": 6,
"name": "Shuttle",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 150,
"y": -90,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 160,
"y": 24
},
"color": {
"r": 0.95,
"g": 0.6,
"b": 0.2,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"fixedRotation": true
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.8,
"y": 0.12
},
"friction": 0.8
}
},
{
"type": "MotorJoint2D",
"data": {
"connectedEntity": 5,
"linearVelocity": {
"x": 180,
"y": 0
},
"maxVelocityForce": 3000,
"angularVelocity": 0,
"maxVelocityTorque": 0,
"linearHertz": 0,
"linearDampingRatio": 0,
"maxSpringForce": 0,
"angularHertz": 0,
"angularDampingRatio": 0,
"maxSpringTorque": 0,
"collideConnected": false,
"enabled": true
}
}
],
"visible": true
},
{
"id": 7,
"name": "SpawnTimer",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {}
},
{
"type": "SpawnTimer",
"data": {
"interval": 0.9,
"timer": 0
}
}
],
"visible": true
},
{
"id": 8,
"name": "PistonAnchor",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 300,
"y": 80,
"z": 0
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
}
],
"visible": true
},
{
"id": 9,
"name": "Piston",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 300,
"y": 40,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 100,
"y": 16
},
"color": {
"r": 0.65,
"g": 0.5,
"b": 0.95,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"fixedRotation": true
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.5,
"y": 0.08
}
}
},
{
"type": "SliderJoint2D",
"data": {
"connectedEntity": 8,
"anchorA": {
"x": 0,
"y": 0
},
"anchorB": {
"x": 0,
"y": 0
},
"axis": {
"x": 0,
"y": 1
},
"enableSpring": true,
"hertz": 1.5,
"dampingRatio": 0.3,
"enableLimit": true,
"lowerTranslation": -120,
"upperTranslation": 40,
"enableMotor": false,
"maxMotorForce": 0,
"motorSpeed": 0,
"collideConnected": false,
"enabled": true
}
}
],
"visible": true
},
{
"id": 10,
"name": "PendulumPivot",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -300,
"y": 190,
"z": 0
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
}
]
},
{
"id": 11,
"name": "PendulumBob",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -230,
"y": 150,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 36,
"y": 36
},
"color": {
"r": 0.95,
"g": 0.72,
"b": 0.25,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.1,
"angularDamping": 0.2
}
},
{
"type": "CircleCollider2D",
"data": {
"radius": 0.18,
"friction": 0.3,
"restitution": 0.2
}
},
{
"type": "DistanceJoint2D",
"data": {
"connectedEntity": 10,
"anchorA": {
"x": 0,
"y": 0
},
"anchorB": {
"x": 0,
"y": 0
},
"length": 110,
"enableLimit": true,
"minLength": 110,
"maxLength": 110
}
}
]
},
{
"id": 12,
"name": "Rail",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -300,
"y": 20,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 200,
"y": 6
},
"color": {
"r": 0.42,
"g": 0.45,
"b": 0.52,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "SegmentCollider2D",
"data": {
"point1": {
"x": -1,
"y": 0.35
},
"point2": {
"x": 1,
"y": -0.35
},
"friction": 0.2
}
}
]
},
{
"id": 13,
"name": "Pill",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -360,
"y": 130,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 28,
"y": 60
},
"color": {
"r": 0.35,
"g": 0.82,
"b": 0.62,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.05,
"angularDamping": 0.05
}
},
{
"type": "CapsuleCollider2D",
"data": {
"radius": 0.14,
"halfHeight": 0.16,
"friction": 0.25,
"restitution": 0.1
}
}
]
},
{
"id": 14,
"name": "Hill",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": -290,
"y": -244,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 6,
"y": 6
},
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "ChainCollider2D",
"data": {
"isLoop": false,
"friction": 0.6,
"points": [
{
"x": -1.1,
"y": 0
},
{
"x": -0.5,
"y": 0.35
},
{
"x": 0.1,
"y": 0.1
},
{
"x": 0.7,
"y": 0.45
},
{
"x": 1.2,
"y": 0.05
}
]
}
}
]
},
{
"id": 15,
"name": "WeldA",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 300,
"y": 180,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 44,
"y": 44
},
"color": {
"r": 0.93,
"g": 0.42,
"b": 0.55,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.05
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.22,
"y": 0.22
},
"friction": 0.4
}
}
]
},
{
"id": 16,
"name": "WeldB",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 348,
"y": 180,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 44,
"y": 44
},
"color": {
"r": 0.35,
"g": 0.82,
"b": 0.62,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.05
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.22,
"y": 0.22
},
"friction": 0.4
}
},
{
"type": "FixedJoint2D",
"data": {
"connectedEntity": 15,
"anchorA": {
"x": 48,
"y": 0
},
"anchorB": {
"x": 0,
"y": 0
}
}
}
]
},
{
"id": 17,
"name": "Wedge",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 190,
"y": -248,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 6,
"y": 6
},
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 0
}
},
{
"type": "PolygonCollider2D",
"data": {
"friction": 0.5,
"vertices": [
{
"x": -0.9,
"y": 0
},
{
"x": 0.9,
"y": 0
},
{
"x": -0.9,
"y": 0.7
}
]
}
}
]
},
{
"id": 18,
"name": "CartBody",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 345,
"y": -216,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 80,
"y": 20
},
"color": {
"r": 0.95,
"g": 0.72,
"b": 0.25,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.02,
"angularDamping": 0.02
}
},
{
"type": "BoxCollider2D",
"data": {
"halfExtents": {
"x": 0.4,
"y": 0.1
},
"friction": 0.3
}
}
]
},
{
"id": 19,
"name": "CartWheelFront",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 375,
"y": -236,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 28,
"y": 28
},
"color": {
"r": 0.42,
"g": 0.45,
"b": 0.52,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.02,
"angularDamping": 0.02
}
},
{
"type": "CircleCollider2D",
"data": {
"radius": 0.14,
"friction": 0.9
}
},
{
"type": "WheelJoint2D",
"data": {
"connectedEntity": 18,
"anchorA": {
"x": 30,
"y": -20
},
"anchorB": {
"x": 0,
"y": 0
},
"axis": {
"x": 0,
"y": 1
},
"enableSpring": true,
"hertz": 6,
"dampingRatio": 0.8,
"enableMotor": true,
"motorSpeed": 7,
"maxMotorTorque": 60
}
}
]
},
{
"id": 20,
"name": "CartWheelRear",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 315,
"y": -236,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 28,
"y": 28
},
"color": {
"r": 0.42,
"g": 0.45,
"b": 0.52,
"a": 1
}
}
},
{
"type": "RigidBody2D",
"data": {
"bodyType": 2,
"linearDamping": 0.02,
"angularDamping": 0.02
}
},
{
"type": "CircleCollider2D",
"data": {
"radius": 0.14,
"friction": 0.9
}
},
{
"type": "WheelJoint2D",
"data": {
"connectedEntity": 18,
"anchorA": {
"x": -30,
"y": -20
},
"anchorB": {
"x": 0,
"y": 0
},
"axis": {
"x": 0,
"y": 1
},
"enableSpring": true,
"hertz": 6,
"dampingRatio": 0.8,
"enableMotor": true,
"motorSpeed": 7,
"maxMotorTorque": 60
}
}
]
}
]
}