--- /dev/null
+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/
[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
# 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
+++ /dev/null
-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/
# 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