Browse Source

- Added instructions and template code to export ImageAsset files directly from Zoptex (http://www.zwopple.com/zwoptex/)

MichPerry-GG 12 years ago
parent
commit
576d866
1 changed files with 19 additions and 0 deletions
  1. 19 0
      tools/Zwoptex/ReadMe.txt

+ 19 - 0
tools/Zwoptex/ReadMe.txt

@@ -0,0 +1,19 @@
+This read me contains instructions for adding a new template to Zwoptex, allowing you to publish directly to a T2D ImageAsset format.
+
+1. Open Zwoptex
+2. Open preferences (cmd+,)
+3. Click on "Coordinates Formats"
+4. Click the plus symbol at the bottom
+5. Rename to T2D
+6. Change the extension to .asset.taml
+7. Copy the following to the source box:
+
+<ImageAsset
+    AssetName="{{ metadata.target.name }}"
+    ImageFile="@assetFile={{ metadata.target.textureFileName }}{{ metadata.target.textureFileExtension }}">
+	<ImageAsset.Cells>
+		{% for sprite in spritesAndAliases %}<Cell Offset="{{ sprite.textureRectX }} {{ sprite.textureRectY }}" Width="{{ sprite.textureRectWidth }}" Height="{{ sprite.textureRectHeight }}"/>
+		{% /for %}</ImageAsset.Cells>
+</ImageAsset>
+
+And that's it! You can now publish ImageAssets directly from Zoptex