gamnit: cache UICamera anchor points
[nit.git] / contrib / action_nitro / src / action_nitro.nit
index e4366e6..56a055b 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-module action_nitro
+module action_nitro is
+       app_name "Action Nitro"
+       app_namespace "net.xymus.action_nitro"
+       app_version(1, 0, git_revision)
+
+       android_manifest_activity """android:screenOrientation="sensorLandscape""""
+       android_api_target 10
+end
 
 import gamnit::depth
 import gamnit::keys
@@ -32,7 +39,7 @@ redef class App
        # Game world assets
 
        # Textures of the biplane, jet, helicopter, parachute and powerups
-       private var planes_sheet = new PlanesImages
+       var planes_sheet = new PlanesImages
 
        # Animation for the player movement
        private var player_textures: Array[Texture] =
@@ -554,7 +561,7 @@ redef class Player
                end
 
                # Display respawn instructions
-               app.ui_sprites.add new Sprite(app.texts_sheet.respawn, app.ui_camera.center)
+               app.ui_sprites.add new Sprite(app.texts_sheet.respawn, app.ui_camera.center.offset(0.0, 0.0, 0.0))
        end
 end