Skip to content

Commit

Permalink
PhysicsEditor expoerter updated. Added fixtureKey field. Changed id f…
Browse files Browse the repository at this point in the history
…rom lime-json to phaser-json. This ID is used by PhysicEditor to select the appropriate exporter. You have to select Phaser Exporter from the Dropdown list again when you update the exporter. No other breaking changes.
  • Loading branch information
georgiee committed Mar 31, 2014
1 parent 0d77b36 commit 9a7600d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion resources/PhysicsEditor Exporter/exporter.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<exporter>
<name>lime-json</name>
<name>phaser-json</name>
<displayName>Phaser (JSON)</displayName>
<description>Exporter for Phaser, JSON</description>
<version>1.0</version>
Expand All @@ -19,6 +19,14 @@
<body>
</body>
<fixture>
<parameter>
<name>fixtureKey</name>
<description>Give this fixture a unique KEY so you can retrieve it later in phaser</description>
<displayName>Fixture's Key</displayName>
<type>string</type>
<default></default>
</parameter>

<parameter>
<name>isSensor</name>
<displayName>Is Sensor</displayName>
Expand Down
3 changes: 3 additions & 0 deletions resources/PhysicsEditor Exporter/phaser.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"{{body.name}}": [
{% for fixture in body.fixtures %}{% if not forloop.first %} ,{% endif %}
{
{% if fixture.fixtureKey %}
"fixtureKey": "{{fixture.fixtureKey}}",
{% endif %}
"isSensor": {{fixture.isSensor}},
"filter": {
"group": {{fixture.filter_groupIndex}},
Expand Down

0 comments on commit 9a7600d

Please sign in to comment.