149 lines
2.9 KiB
JSON
149 lines
2.9 KiB
JSON
{
|
|
"format": "faset.scene",
|
|
"version": 1,
|
|
"id": "tutorial-physics",
|
|
"name": "Physics tutorial",
|
|
"dimension": 2,
|
|
"simulation": {
|
|
"fixed_delta": 0.016666666666666666,
|
|
"max_catch_up_ticks": 4,
|
|
"physics_substeps": 4,
|
|
"gravity": [
|
|
0,
|
|
-9.81,
|
|
0
|
|
]
|
|
},
|
|
"entities": [
|
|
{
|
|
"id": "floor",
|
|
"name": "floor",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "floor-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
0,
|
|
-0.5,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "floor-faset.sprite",
|
|
"type": "faset.sprite",
|
|
"version": 1,
|
|
"fields": {
|
|
"color": [
|
|
0.4,
|
|
0.5,
|
|
0.6,
|
|
1
|
|
],
|
|
"size": [
|
|
12,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "floor-faset.rigid_body_2d",
|
|
"type": "faset.rigid_body_2d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
6,
|
|
0.5
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "actor",
|
|
"name": "actor",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "actor-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
0,
|
|
0.5,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "actor-faset.sprite",
|
|
"type": "faset.sprite",
|
|
"version": 1,
|
|
"fields": {
|
|
"color": [
|
|
0.2,
|
|
0.7,
|
|
0.9,
|
|
1
|
|
],
|
|
"size": [
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "actor-faset.rigid_body_2d",
|
|
"type": "faset.rigid_body_2d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "dynamic",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.3,
|
|
"gravity_scale": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "actor-tutorial.character",
|
|
"type": "tutorial.character",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 4,
|
|
"jump_speed": 5
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"instances": []
|
|
}
|