gamnit: shorten template_flat to template and update namespace
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 16:23:03 +0000 (12:23 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 7 May 2017 16:23:03 +0000 (12:23 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/examples/template/Makefile [new file with mode: 0644]
lib/gamnit/examples/template/README.md [moved from lib/gamnit/examples/template_flat/README.md with 100% similarity]
lib/gamnit/examples/template/assets/fighter.png [moved from lib/gamnit/examples/template_flat/assets/fighter.png with 100% similarity]
lib/gamnit/examples/template/assets/laser.mp3 [moved from lib/gamnit/examples/template_flat/assets/laser.mp3 with 100% similarity]
lib/gamnit/examples/template/package.ini [moved from lib/gamnit/examples/template_flat/package.ini with 76% similarity]
lib/gamnit/examples/template/src/template.nit [moved from lib/gamnit/examples/template_flat/src/template_flat.nit with 96% similarity]
lib/gamnit/examples/template_flat/Makefile [deleted file]
lib/gamnit/flat.nit

diff --git a/lib/gamnit/examples/template/Makefile b/lib/gamnit/examples/template/Makefile
new file mode 100644 (file)
index 0000000..270312e
--- /dev/null
@@ -0,0 +1,14 @@
+bin/template: $(shell nitls -M src/template.nit -m linux)
+       mkdir -p bin/
+       nitc src/template.nit -m linux -o $@
+
+android: bin/template.apk
+bin/template.apk: $(shell nitls -M src/template.nit -m android)
+       mkdir -p bin/
+       nitc src/template.nit -m android -o $@
+
+check:
+       nitunit .
+
+clean:
+       rm -rf bin/
similarity index 76%
rename from lib/gamnit/examples/template_flat/package.ini
rename to lib/gamnit/examples/template/package.ini
index 103ccd7..854e1ce 100644 (file)
@@ -1,11 +1,11 @@
 [package]
-name=template_flat
+name=template
 tags=game,example
 maintainer=Alexis Laferrière <alexis.laf@xymus.net>
 license=WTFPL
 [upstream]
-browse=https://github.com/nitlang/nit/tree/master/lib/gamnit/examples/template_flat/
+browse=https://github.com/nitlang/nit/tree/master/lib/gamnit/examples/template/
 git=https://github.com/nitlang/nit.git
-git.directory=lib/gamnit/examples/template_flat/
+git.directory=lib/gamnit/examples/template/
 homepage=http://nitlanguage.org
 issues=https://github.com/nitlang/nit/issues
@@ -6,10 +6,10 @@
 # http://sam.zoy.org/projects/COPYING.WTFPL for more details.
 
 # Template for a 2D gamnit game
-module template_flat is
-       app_name "gamnit 2D Template"
-       app_namespace "net.xymus.template_flat"
-       app_version(1, 0, git_revision)
+module template is
+       app_name "gamnit template"
+       app_namespace "org.gamnit.template"
+       app_version(0, 1, git_revision)
        android_api_target 10
 end
 
diff --git a/lib/gamnit/examples/template_flat/Makefile b/lib/gamnit/examples/template_flat/Makefile
deleted file mode 100644 (file)
index 12cb2ed..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-bin/template_flat: $(shell nitls -M src/template_flat.nit -m linux)
-       mkdir -p bin/
-       nitc src/template_flat.nit -m linux -o $@
-
-android: bin/template_flat.apk
-bin/template_flat.apk: $(shell nitls -M src/template_flat.nit -m android)
-       mkdir -p bin/
-       nitc src/template_flat.nit -m android -o $@
-
-check:
-       nitunit .
-
-clean:
-       rm -rf bin/
index cfd8150..b0319aa 100644 (file)
@@ -30,7 +30,7 @@
 #   devices. It is used to position the sprites in `App::ui_sprites`.
 #
 # See the sample game at `contrib/asteronits/` and the basic project template
-# at `lib/gamnit/examples/template_flat/`.
+# at `lib/gamnit/examples/template/`.
 module flat
 
 import glesv2