mnit_ballz: add app_name and icon
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 31 Jul 2014 17:51:17 +0000 (13:51 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 31 Jul 2014 17:57:36 +0000 (13:57 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/mnit_ballz/Makefile
examples/mnit_ballz/art/ball.svg [new file with mode: 0644]
examples/mnit_ballz/src/ballz_android.nit

index b6b8a58..8f9733b 100644 (file)
@@ -1,8 +1,12 @@
 default: android
 
-android:
+android: icon
        mkdir -p bin
        ../../bin/nitg -o bin/ballz.apk src/ballz_android.nit
 
+icon:
+       mkdir -p res
+       ../../contrib/inkscape_tools/bin/svg_to_icons art/ball.svg --android --out res/
+
 clean:
        rm -rf bin
diff --git a/examples/mnit_ballz/art/ball.svg b/examples/mnit_ballz/art/ball.svg
new file mode 100644 (file)
index 0000000..ada039c
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="63.857143"
+   height="63.857143"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="ball.svg">
+  <defs
+     id="defs4">
+    <linearGradient
+       id="linearGradient3785">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1;"
+         offset="0"
+         id="stop3787" />
+      <stop
+         style="stop-color:#ffffff;stop-opacity:0;"
+         offset="1"
+         id="stop3789" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3773">
+      <stop
+         id="stop3775"
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:0.85384613;" />
+      <stop
+         id="stop3777"
+         offset="1"
+         style="stop-color:#c2dbdb;stop-opacity:0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3763">
+      <stop
+         style="stop-color:#00d2a3;stop-opacity:1;"
+         offset="0"
+         id="stop3765" />
+      <stop
+         style="stop-color:#008080;stop-opacity:1;"
+         offset="1"
+         id="stop3767" />
+    </linearGradient>
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3763"
+       id="radialGradient3769"
+       cx="342.85715"
+       cy="596.64789"
+       fx="342.85715"
+       fy="596.64789"
+       r="31.428572"
+       gradientUnits="userSpaceOnUse" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3773"
+       id="radialGradient3779"
+       gradientUnits="userSpaceOnUse"
+       cx="321.13269"
+       cy="582.57141"
+       fx="321.13269"
+       fy="582.57141"
+       r="31.428572" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3785"
+       id="radialGradient3783"
+       gradientUnits="userSpaceOnUse"
+       cx="346.27521"
+       cy="596.22546"
+       fx="346.27521"
+       fy="596.22546"
+       r="31.428572" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="3.959798"
+     inkscape:cx="57.90803"
+     inkscape:cy="-22.550981"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1855"
+     inkscape:window-height="1056"
+     inkscape:window-x="1985"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-310.92858,-564.71932)">
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient3769);fill-opacity:1;stroke:#000000;stroke-opacity:1"
+       id="path2985"
+       sodipodi:cx="342.85715"
+       sodipodi:cy="596.64789"
+       sodipodi:rx="31.428572"
+       sodipodi:ry="31.428572"
+       d="m 374.28572,596.64789 c 0,17.35752 -14.07105,31.42857 -31.42857,31.42857 -17.35752,0 -31.42857,-14.07105 -31.42857,-31.42857 0,-17.35752 14.07105,-31.42857 31.42857,-31.42857 17.35752,0 31.42857,14.07105 31.42857,31.42857 z" />
+    <path
+       d="m 374.28572,596.64789 c 0,17.35752 -14.07105,31.42857 -31.42857,31.42857 -17.35752,0 -31.42857,-14.07105 -31.42857,-31.42857 0,-17.35752 14.07105,-31.42857 31.42857,-31.42857 17.35752,0 31.42857,14.07105 31.42857,31.42857 z"
+       sodipodi:ry="31.428572"
+       sodipodi:rx="31.428572"
+       sodipodi:cy="596.64789"
+       sodipodi:cx="342.85715"
+       id="path3771"
+       style="fill:url(#radialGradient3779);fill-opacity:1;stroke:#000000;stroke-opacity:1"
+       sodipodi:type="arc" />
+    <path
+       sodipodi:type="arc"
+       style="fill:url(#radialGradient3783);fill-opacity:1;stroke:none"
+       id="path3781"
+       sodipodi:cx="342.85715"
+       sodipodi:cy="596.64789"
+       sodipodi:rx="31.428572"
+       sodipodi:ry="31.428572"
+       d="m 374.28572,596.64789 c 0,17.35752 -14.07105,31.42857 -31.42857,31.42857 -17.35752,0 -31.42857,-14.07105 -31.42857,-31.42857 0,-17.35752 14.07105,-31.42857 31.42857,-31.42857 17.35752,0 31.42857,14.07105 31.42857,31.42857 z"
+       transform="matrix(0.08299773,0.05538714,-0.1829738,0.27418656,402.0601,399.46436)" />
+  </g>
+</svg>
index 823edd9..affb3e9 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module ballz_android
+module ballz_android is
+       app_version(1, 0, git_revision)
+       app_name("Ballz")
+end
 
 import game_logic