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": "Fog orientation",
"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": 300,
"isActive": true,
"priority": 0,
"clearFlags": 3
}
},
{
"type": "PostProcessVolume",
"data": {
"isGlobal": true,
"priority": 0,
"weight": 1,
"effects": [
{
"type": "fog2d",
"enabled": true,
"uniforms": {}
}
]
}
}
]
},
{
"id": 1,
"name": "Ground",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "Sprite",
"data": {
"size": {
"x": 2000,
"y": 2000
},
"color": {
"r": 1,
"g": 1,
"b": 1,
"a": 1
}
}
}
]
},
{
"id": 2,
"name": "Fog",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
}
}
},
{
"type": "FogOfWar",
"data": {
"width": 1200,
"height": 1200,
"texels": 256,
"viewRadius": 100,
"rays": 128,
"enabled": true
}
}
]
},
{
"id": 3,
"name": "Viewer",
"parent": null,
"children": [],
"visible": true,
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 180,
"z": 0
}
}
},
{
"type": "SightViewer",
"data": {
"radius": 100,
"enabled": true
}
}
]
}
]
}