Jelajahi Sumber

update exporters

mikymod 12 tahun lalu
induk
melakukan
93dfa0573c

+ 0 - 0
exporters/physicseditor/exporter.xml → exporters/physicseditor/crown/exporter.xml


+ 7 - 7
exporters/physicseditor/template.txt → exporters/physicseditor/crown/template.txt

@@ -2,17 +2,17 @@
 	"actors" : {{% for actor in bodies %}
 		"{{actor.name}}" : {
 			"node" : "{{actor.node}}",
-			"type" : "{{actor.class}}",
+			"class" : "{{actor.class}}",
 			"shapes" : {{% for shape in actor.fixtures %}
-				{{shape.name}} : {
+				"{{shape.name}}" : {
 					"class" : "{{shape.class}}",
-					"material" : "default",	{% if shape.is_box %}
+					"material" : "default",{% if shape.is_box %}
 					"type" : "box",
-					"coords" : [{% for point in shape.hull%}
-						{{point.x}}, {{point.y}}{% if not forloop.last %},{% endif %} {% endfor %}
-					] {% endif %}{% if shape.is_circle %}
+					"width" : {{actor.size.width}},					{# in pixels #}
+					"height" : {{actor.size.height}},				{# in pixels #}
+					"depth" : 0.1{% endif %}{% if shape.is_circle %}
 					"type" : "circle",
-					"radius" : {{shape.radius}}	{% endif %}
+					"radius" : {{shape.radius|floatformat:3}}	{% endif %}
 				} {% if not forloop.last %},{% endif %} {% endfor %}
 			}
 		}

+ 0 - 0
exporters/texturepacker/exporter.xml → exporters/texturepacker/crown/exporter.xml


+ 0 - 0
exporters/texturepacker/grantlee/0.2/filter.qs → exporters/texturepacker/crown/grantlee/0.2/filter.qs


+ 0 - 0
exporters/texturepacker/template.txt → exporters/texturepacker/crown/template.txt