-
Notifications
You must be signed in to change notification settings - Fork 0
/
spritemap.xml
27 lines (24 loc) · 1.04 KB
/
spritemap.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8"?>
<project name="spritemap" basedir="." default="spritemaps">
<taskdef resource="spritemapper-tasks"/>
<property name="frames" value="true"/>
<property name="maxwidth" value="1200"/>
<property name="graphics" value="graphics"/>
<target name="spritemaps" depends="spritemap_trim,spritemap_notrim"/>
<target name="spritemap_trim">
<spritemap drawframes="${frames}" maxwidth="${maxwidth}" destfile="trim_map.png">
<layoutmeta destfile="trim_map.plist" format="zwoptex2"/>
<fileset dir="${graphics}">
<include name="**/*.png"/>
</fileset>
</spritemap>
</target>
<target name="spritemap_notrim">
<spritemap trim="false" drawframes="${frames}" maxwidth="${maxwidth}" destfile="notrim_map.png">
<layoutmeta destfile="notrim_map.plist" format="zwoptex2"/>
<fileset dir="${graphics}">
<include name="**/*.png"/>
</fileset>
</spritemap>
</target>
</project>