mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 01:24:48 +00:00
17 lines
No EOL
770 B
JSON
17 lines
No EOL
770 B
JSON
{ {% for body in bodies %}
|
|
{% if not forloop.first %}, {% endif %}
|
|
"{{body.name}}": [
|
|
{% for fixture in body.fixtures %}{% if not forloop.first %} ,{% endif %}
|
|
{
|
|
"density": {{fixture.density}}, "friction": {{fixture.friction}}, "bounce": {{fixture.bounce}}, {% if fixture.isSensor %}"isSensor"=true, {% endif %}
|
|
"filter": { "categoryBits": {{fixture.filter_categoryBits}}, "maskBits": {{fixture.filter_maskBits}} },
|
|
"polygons":[
|
|
{% for polygon in fixture.polygons %}{% if not forloop.first %} ,{% endif %}
|
|
[ {% for point in polygon %} {% if not forloop.first %}, {% endif %} {{point.x}}, {{point.y}} {% endfor %} ]
|
|
{% endfor %}
|
|
]
|
|
}
|
|
{% endfor %}
|
|
]
|
|
{% endfor %}
|
|
} |