11 local name text color bgcolor
20 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
21 <!-- Created with Inkscape (http://www.inkscape.org/) -->
23 xmlns:dc="http://purl.org/dc/elements/1.1/"
24 xmlns:cc="http://web.resource.org/cc/"
25 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
26 xmlns:svg="http://www.w3.org/2000/svg"
27 xmlns="http://www.w3.org/2000/svg"
28 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
29 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
33 sodipodi:version="0.32"
34 inkscape:version="0.45"
36 inkscape:export-filename="bluebase.tga"
37 inkscape:export-xdpi="90"
38 inkscape:export-ydpi="90"
39 sodipodi:docname="template.svg"
40 sodipodi:docbase="/home/rpolzer/software/games/nexuiz/data/models/sprites"
41 inkscape:output_extension="org.inkscape.output.svg.inkscape"
42 sodipodi:modified="true">
53 inkscape:pageopacity="0"
54 inkscape:pageshadow="2"
55 inkscape:zoom="0.98994949"
57 inkscape:cy="75.53288"
58 inkscape:document-units="px"
59 inkscape:current-layer="layer1"
66 inkscape:grid-points="true"
68 inkscape:guide-bbox="true"
69 inkscape:window-width="849"
70 inkscape:window-height="590"
71 inkscape:window-x="198"
72 inkscape:window-y="66" />
78 <dc:format>image/svg+xml</dc:format>
80 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
85 inkscape:label="Layer 1"
86 inkscape:groupmode="layer"
89 style="opacity:1;fill:#$color;fill-opacity:1;stroke:#$bgcolor;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.75294119"
90 d="M 256,126 L 280,102 L 264,102 L 264,62 L 248,62 L 248,102 L 232,102 L 256,126 z "
92 sodipodi:nodetypes="cccccccc" />
95 style="font-size:56px;font-weight:bold;text-align:center;text-anchor:middle;opacity:1;fill:#$color;fill-opacity:1;stroke:#$bgcolor;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.75294118"
102 y="49.957031">$text</tspan></text>
106 enlargex=$(($sprwidth - $width))
107 enlargey=$(($sprheight - $height))
111 inkscape -z -w $sprwidth -h $sprheight \
112 -a "$((-$enlargex * $svgwidth / $width / 2)):0:$(($svgwidth + $enlargex * $svgwidth / $width / 2)):$(($svgheight + $enlargey * $svgheight / $height))" \
113 -e "$name.png" "$name.svg"
118 local name text color bgcolor interval frame args
125 while [ $# -gt 0 ]; do
132 pngsprite "${name}_frame$frame" "$color" "$bgcolor" "$text"
133 args="$args -sprite ${name}_frame$frame.png $(($sprwidth / 2)) $(($sprheight - 1)) $interval"
134 frame=$(($frame + 1))
136 ./makespr32 -o "$name.sp2" -proj 5 -group $args
139 sprite bluebase "BLUE BASE" 0000ff 000000 0.0
140 sprite danger "DANGER" ff0000 ffff00 0.0
141 sprite flagcarrier "FLAG CARRIER" ffff00 000000 0.0
142 sprite helpme "HELP ME" ffff00 ff0000 0.0
143 sprite here "HERE" 00ff00 000000 0.0
144 sprite key-dropped "DROPPED KEY" 00ffff 000000 0.0
145 sprite keycarrier-blue "KEY CARRIER" 0000ff 000000 0.0
146 sprite keycarrier-finish "RUN HERE" 00ffff 000000 0.0
147 sprite keycarrier-friend "KEY CARRIER" 00ff00 000000 0.0
148 sprite keycarrier-pink "KEY CARRIER" ff00ff 000000 0.0
149 sprite keycarrier-red "KEY CARRIER" ff0000 000000 0.0
150 sprite keycarrier-yellow "KEY CARRIER" ffff00 000000 0.0
151 sprite redbase "RED BASE" ff0000 000000 0.0
152 sprite waypoint "WAYPOINT" 008080 000000 0.0
153 sprite ons-gen-red "GENERATOR" ff0000 000000 0.0
154 sprite ons-gen-blue "GENERATOR" 0000ff 000000 0.0
155 sprite ons-gen-shielded "GENERATOR" 808080 000000 0.0
156 sprite ons-cp-neut "CONTROL POINT" ffff00 000000 0.0
157 sprite ons-cp-red "CONTROL POINT" ff0000 000000 0.0
158 sprite ons-cp-blue "CONTROL POINT" 0000ff 000000 0.0
159 sprite ons-cp-atck-neut "CONTROL POINT" ffff00 000000 0.5 000000 ffff00 0.5
160 sprite ons-cp-atck-red "CONTROL POINT" ff0000 000000 0.5 ff0000 ffff00 0.5
161 sprite ons-cp-atck-blue "CONTROL POINT" 0000ff 000000 0.5 0000ff ffff00 0.5
162 sprite ons-cp-dfnd-red "CONTROL POINT" ff0000 000000 0.5 ff0000 ffffff 0.5
163 sprite ons-cp-dfnd-blue "CONTROL POINT" 0000ff 000000 0.5 0000ff ffffff 0.5