[playn-samples] 7 new revisions pushed by samskiv...@gmail.com on 2014-11-13 23:29 GMT

4 views
Skip to first unread message

playn-...@googlecode.com

unread,
Nov 13, 2014, 6:30:02 PM11/13/14
to playn-...@googlegroups.com
master moved from 7c089701ce2c to 0f4a74f00eda

7 new revisions:

Revision: 65ffc3073c23
Author: Michael Bayne <m...@samskivert.com>
Date: Tue Nov 11 04:58:55 2014 UTC
Log: Stretch the BG image to fill the screen.
https://code.google.com/p/playn-samples/source/detail?r=65ffc3073c23

Revision: 1677c0b52914
Author: Michael Bayne <m...@samskivert.com>
Date: Tue Nov 11 19:00:43 2014 UTC
Log: Wired up RoboVM backends for samples....
https://code.google.com/p/playn-samples/source/detail?r=1677c0b52914

Revision: 4dac2e314457
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 18:30:57 2014 UTC
Log: Share a single bg image, size it to fit.
https://code.google.com/p/playn-samples/source/detail?r=4dac2e314457

Revision: 8df81e58287d
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 18:37:20 2014 UTC
Log: Wrap tip label if too wide.
https://code.google.com/p/playn-samples/source/detail?r=8df81e58287d

Revision: 70c1ccb59c59
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 22:07:49 2014 UTC
Log: Show screen width x height.
https://code.google.com/p/playn-samples/source/detail?r=70c1ccb59c59

Revision: d0c9374f9881
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 22:57:06 2014 UTC
Log: Grok device rotations.
https://code.google.com/p/playn-samples/source/detail?r=d0c9374f9881

Revision: 0f4a74f00eda
Author: Michael Bayne <m...@samskivert.com>
Date: Thu Nov 13 23:29:27 2014 UTC
Log: Use 1.9-alpha1 release.
https://code.google.com/p/playn-samples/source/detail?r=0f4a74f00eda

==============================================================================
Revision: 65ffc3073c23
Author: Michael Bayne <m...@samskivert.com>
Date: Tue Nov 11 04:58:55 2014 UTC
Log: Stretch the BG image to fill the screen.

https://code.google.com/p/playn-samples/source/detail?r=65ffc3073c23

Modified:
/hello/core/src/main/java/playn/sample/hello/core/HelloGame.java

=======================================
--- /hello/core/src/main/java/playn/sample/hello/core/HelloGame.java Wed
Mar 20 21:35:48 2013 UTC
+++ /hello/core/src/main/java/playn/sample/hello/core/HelloGame.java Tue
Nov 11 04:58:55 2014 UTC
@@ -42,6 +42,7 @@
// create and add background image layer
Image bgImage = assets().getImage("images/bg.png");
ImageLayer bgLayer = graphics().createImageLayer(bgImage);
+ bgLayer.setSize(graphics().screenWidth(), graphics().screenHeight());
graphics().rootLayer().add(bgLayer);

// create a group layer to hold the peas

==============================================================================
Revision: 1677c0b52914
Author: Michael Bayne <m...@samskivert.com>
Date: Tue Nov 11 19:00:43 2014 UTC
Log: Wired up RoboVM backends for samples.

This bumps everything to 1.9-SNAPSHOT for the nonce.

https://code.google.com/p/playn-samples/source/detail?r=1677c0b52914

Added:
/cute/robovm/Info.plist.xml
/cute/robovm/pom.xml
/cute/robovm/resources/Defaul...@2x.png
/cute/robovm/resources/Def...@2x.png
/cute/robovm/resources/Icon-72.png
/cute/robovm/resources/Icon-Small-50.png
/cute/robovm/resources/Icon-Small.png
/cute/robovm/resources/Icon-...@2x.png
/cute/robovm/resources/Icon.png
/cute/robovm/resources/Ic...@2.png
/cute/robovm/resources/Ic...@2x.png
/cute/robovm/resources/assets
/cute/robovm/resources/iTunesArtwork
/cute/robovm/robovm.properties
/cute/robovm/robovm.xml
/cute/robovm/src/main/java/playn/sample/cute/robovm/CuteGameRoboVM.java
/hello/robovm/Info.plist.xml
/hello/robovm/pom.xml
/hello/robovm/resources/Defaul...@2x.png
/hello/robovm/resources/Def...@2x.png
/hello/robovm/resources/Icon-72.png
/hello/robovm/resources/Icon-Small-50.png
/hello/robovm/resources/Icon-Small.png
/hello/robovm/resources/Icon-...@2x.png
/hello/robovm/resources/Icon.png
/hello/robovm/resources/Ic...@2.png
/hello/robovm/resources/Ic...@2x.png
/hello/robovm/resources/assets
/hello/robovm/resources/iTunesArtwork
/hello/robovm/robovm.properties
/hello/robovm/robovm.xml
/hello/robovm/src/main/java/playn/sample/hello/robovm/HelloGameRoboVM.java
/showcase/robovm/Info.plist.xml
/showcase/robovm/pom.xml
/showcase/robovm/resources/Defaul...@2x.png
/showcase/robovm/resources/Def...@2x.png
/showcase/robovm/resources/Icon-72.png
/showcase/robovm/resources/Icon-Small-50.png
/showcase/robovm/resources/Icon-Small.png
/showcase/robovm/resources/Icon-...@2x.png
/showcase/robovm/resources/Icon.png
/showcase/robovm/resources/Ic...@2.png
/showcase/robovm/resources/Ic...@2x.png
/showcase/robovm/resources/assets
/showcase/robovm/resources/iTunesArtwork
/showcase/robovm/robovm.properties
/showcase/robovm/robovm.xml
/showcase/robovm/src/main/java/playn/showcase/robovm/ShowcaseRoboVM.java
Modified:
/cute/pom.xml
/hello/pom.xml
/showcase/pom.xml

=======================================
--- /dev/null
+++ /cute/robovm/Info.plist.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${app.name}</string>
+ <key>CFBundleExecutable</key>
+ <string>${app.executable}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${app.id}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${app.name}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${app.version}</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>${app.build}</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true />
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ </dict>
+</plist>
=======================================
--- /dev/null
+++ /cute/robovm/pom.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-cute</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>playn-cute-robovm</artifactId>
+ <packaging>jar</packaging>
+ <name>PlayN Cute RoboVM</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-cute-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-robovm</artifactId>
+ <version>${playn.version}</version>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>robosim</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <configuration>
+ <deviceName>iPad-Retina</deviceName>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>ipad-sim</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>robodev</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>ios-device</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
=======================================
--- /dev/null
+++ /cute/robovm/resources/Defaul...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Def...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Icon-72.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Icon-Small-50.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Icon-Small.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Icon-...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Icon.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Ic...@2.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/Ic...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/resources/assets Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,1 @@
+../../assets/src/main/resources/assets
=======================================
--- /dev/null
+++ /cute/robovm/resources/iTunesArtwork Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /cute/robovm/robovm.properties Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,6 @@
+app.version=1.0
+app.id=com.googlecode.playn.cute
+app.mainclass=playn.sample.cute.robovm.CuteGameRoboVM
+app.executable=CuteGameRoboVM
+app.build=1
+app.name=PlayN Cute
=======================================
--- /dev/null
+++ /cute/robovm/robovm.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,17 @@
+<config>
+ <executableName>${app.executable}</executableName>
+ <mainClass>${app.mainclass}</mainClass>
+ <os>ios</os>
+ <arch>thumbv7</arch>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <target>ios</target>
+ <iosInfoPList>Info.plist.xml</iosInfoPList>
+ <forceLinkClasses>
+ <pattern>SQLite.JDBCDriver</pattern>
+ <pattern>SQLite.JDBC2z.JDBCConnection</pattern>
+ </forceLinkClasses>
+</config>
=======================================
--- /dev/null
+++ /cute/robovm/src/main/java/playn/sample/cute/robovm/CuteGameRoboVM.java
Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,43 @@
+/**
+ * Copyright 2014 The PlayN Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
permissions and
+ * limitations under the License.
+ */
+package playn.sample.cute.robovm;
+
+import org.robovm.apple.foundation.NSAutoreleasePool;
+import org.robovm.apple.uikit.UIApplication;
+import org.robovm.apple.uikit.UIApplicationDelegateAdapter;
+import org.robovm.apple.uikit.UIApplicationLaunchOptions;
+
+import playn.robovm.RoboPlatform;
+import playn.sample.cute.core.CuteGame;
+
+public class CuteGameRoboVM extends UIApplicationDelegateAdapter {
+
+ @Override
+ public boolean didFinishLaunching (UIApplication app,
UIApplicationLaunchOptions launchOpts) {
+
+ RoboPlatform pf = RoboPlatform.register(app);
+ // Retain platform object until the application is deallocated.
Prevents Java GC from
+ // collecting things too early.
+ addStrongRef(pf);
+
+ pf.run(new CuteGame());
+ return true;
+ }
+
+ public static void main (String[] args) {
+ NSAutoreleasePool pool = new NSAutoreleasePool();
+ UIApplication.main(args, null, CuteGameRoboVM.class);
+ pool.close();
+ }
+}
=======================================
--- /dev/null
+++ /hello/robovm/Info.plist.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${app.name}</string>
+ <key>CFBundleExecutable</key>
+ <string>${app.executable}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${app.id}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${app.name}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${app.version}</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>${app.build}</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true />
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ </dict>
+</plist>
=======================================
--- /dev/null
+++ /hello/robovm/pom.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-hello</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>playn-hello-robovm</artifactId>
+ <packaging>jar</packaging>
+ <name>PlayN Hello RoboVM</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-hello-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-robovm</artifactId>
+ <version>${playn.version}</version>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>robosim</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <configuration>
+ <deviceName>iPad-Retina</deviceName>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>ipad-sim</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>robodev</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>ios-device</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
=======================================
--- /dev/null
+++ /hello/robovm/resources/Defaul...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Def...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Icon-72.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Icon-Small-50.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Icon-Small.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Icon-...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Icon.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Ic...@2.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/Ic...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/resources/assets Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,1 @@
+../../assets/src/main/resources/assets
=======================================
--- /dev/null
+++ /hello/robovm/resources/iTunesArtwork Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /hello/robovm/robovm.properties Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,6 @@
+app.version=1.0
+app.id=com.googlecode.playn.hello
+app.mainclass=playn.sample.hello.robovm.HelloGameRoboVM
+app.executable=HelloGameRoboVM
+app.build=1
+app.name=PlayN Hello
=======================================
--- /dev/null
+++ /hello/robovm/robovm.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,17 @@
+<config>
+ <executableName>${app.executable}</executableName>
+ <mainClass>${app.mainclass}</mainClass>
+ <os>ios</os>
+ <arch>thumbv7</arch>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <target>ios</target>
+ <iosInfoPList>Info.plist.xml</iosInfoPList>
+ <forceLinkClasses>
+ <pattern>SQLite.JDBCDriver</pattern>
+ <pattern>SQLite.JDBC2z.JDBCConnection</pattern>
+ </forceLinkClasses>
+</config>
=======================================
--- /dev/null
+++
/hello/robovm/src/main/java/playn/sample/hello/robovm/HelloGameRoboVM.java
Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,43 @@
+/**
+ * Copyright 2014 The PlayN Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
permissions and
+ * limitations under the License.
+ */
+package playn.sample.hello.robovm;
+
+import org.robovm.apple.foundation.NSAutoreleasePool;
+import org.robovm.apple.uikit.UIApplication;
+import org.robovm.apple.uikit.UIApplicationDelegateAdapter;
+import org.robovm.apple.uikit.UIApplicationLaunchOptions;
+
+import playn.robovm.RoboPlatform;
+import playn.sample.hello.core.HelloGame;
+
+public class HelloGameRoboVM extends UIApplicationDelegateAdapter {
+
+ @Override
+ public boolean didFinishLaunching (UIApplication app,
UIApplicationLaunchOptions launchOpts) {
+
+ RoboPlatform pf = RoboPlatform.register(app);
+ // Retain platform object until the application is deallocated.
Prevents Java GC from
+ // collecting things too early.
+ addStrongRef(pf);
+
+ pf.run(new HelloGame());
+ return true;
+ }
+
+ public static void main (String[] args) {
+ NSAutoreleasePool pool = new NSAutoreleasePool();
+ UIApplication.main(args, null, HelloGameRoboVM.class);
+ pool.close();
+ }
+}
=======================================
--- /dev/null
+++ /showcase/robovm/Info.plist.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${app.name}</string>
+ <key>CFBundleExecutable</key>
+ <string>${app.executable}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${app.id}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${app.name}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${app.version}</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>${app.build}</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true />
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIAppFonts</key>
+ <array>
+ <string>assets/text/Museo.otf</string>
+ </array>
+ </dict>
+</plist>
=======================================
--- /dev/null
+++ /showcase/robovm/pom.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-showcase</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>playn-showcase-robovm</artifactId>
+ <packaging>jar</packaging>
+ <name>PlayN Showcase RoboVM</name>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-showcase-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.googlecode.playn</groupId>
+ <artifactId>playn-robovm</artifactId>
+ <version>${playn.version}</version>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>robosim</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <configuration>
+ <deviceName>iPad-Retina</deviceName>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>ipad-sim</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>robodev</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.robovm</groupId>
+ <artifactId>robovm-maven-plugin</artifactId>
+ <version>${robovm.maven.version}</version>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>ios-device</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Defaul...@2x.png Tue Nov 11 19:00:43 2014
UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Def...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Icon-72.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Icon-Small-50.png Tue Nov 11 19:00:43 2014
UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Icon-Small.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Icon-...@2x.png Tue Nov 11 19:00:43 2014
UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Icon.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Ic...@2.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/Ic...@2x.png Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/resources/assets Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,1 @@
+../../assets/src/main/resources/assets
=======================================
--- /dev/null
+++ /showcase/robovm/resources/iTunesArtwork Tue Nov 11 19:00:43 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++ /showcase/robovm/robovm.properties Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,6 @@
+app.version=1.0
+app.id=com.googlecode.playn.showcase
+app.mainclass=playn.showcase.robovm.ShowcaseRoboVM
+app.executable=ShowcaseRoboVM
+app.build=1
+app.name=PlayN Showcase
=======================================
--- /dev/null
+++ /showcase/robovm/robovm.xml Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,17 @@
+<config>
+ <executableName>${app.executable}</executableName>
+ <mainClass>${app.mainclass}</mainClass>
+ <os>ios</os>
+ <arch>thumbv7</arch>
+ <resources>
+ <resource>
+ <directory>resources</directory>
+ </resource>
+ </resources>
+ <target>ios</target>
+ <iosInfoPList>Info.plist.xml</iosInfoPList>
+ <forceLinkClasses>
+ <pattern>SQLite.JDBCDriver</pattern>
+ <pattern>SQLite.JDBC2z.JDBCConnection</pattern>
+ </forceLinkClasses>
+</config>
=======================================
--- /dev/null
+++
/showcase/robovm/src/main/java/playn/showcase/robovm/ShowcaseRoboVM.java
Tue Nov 11 19:00:43 2014 UTC
@@ -0,0 +1,52 @@
+/**
+ * Copyright 2014 The PlayN Authors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
distributed under the
+ * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
permissions and
+ * limitations under the License.
+ */
+package playn.showcase.robovm;
+
+import org.robovm.apple.foundation.NSAutoreleasePool;
+import org.robovm.apple.uikit.UIApplication;
+import org.robovm.apple.uikit.UIApplicationDelegateAdapter;
+import org.robovm.apple.uikit.UIApplicationLaunchOptions;
+import org.robovm.apple.uikit.UIDevice;
+
+import playn.robovm.RoboPlatform;
+import playn.showcase.core.Showcase;
+
+public class ShowcaseRoboVM extends UIApplicationDelegateAdapter {
+
+ @Override
+ public boolean didFinishLaunching (UIApplication app,
UIApplicationLaunchOptions launchOpts) {
+
+ RoboPlatform pf = RoboPlatform.register(app);
+ // Retain platform object until the application is deallocated.
Prevents Java GC from
+ // collecting things too early.
+ addStrongRef(pf);
+
+ pf.run(new Showcase(new Showcase.DeviceService() {
+ public String info () {
+ UIDevice device = UIDevice.getCurrentDevice();
+ return "iOS [model=" + device.getModel() +
+ ", os=" + device.getSystemName() + "/" +
device.getSystemVersion() +
+ ", name=" + device.getName() +
+ ", orient=" + device.getOrientation() + "]";
+ }
+ }));
+ return true;
+ }
+
+ public static void main (String[] args) {
+ NSAutoreleasePool pool = new NSAutoreleasePool();
+ UIApplication.main(args, null, ShowcaseRoboVM.class);
+ pool.close();
+ }
+}
=======================================
--- /cute/pom.xml Wed Feb 12 19:54:08 2014 UTC
+++ /cute/pom.xml Tue Nov 11 19:00:43 2014 UTC
@@ -6,7 +6,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.8.5</version>
+ <version>1.9-SNAPSHOT</version>
</parent>

<artifactId>playn-cute</artifactId>
@@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
- <playn.version>1.8.5</playn.version>
+ <playn.version>1.9-SNAPSHOT</playn.version>
</properties>

<modules>
@@ -38,6 +38,14 @@
<modules><module>ios</module></modules>
</profile>
<profile>
+ <id>robosim</id>
+ <modules><module>robovm</module></modules>
+ </profile>
+ <profile>
+ <id>robodev</id>
+ <modules><module>robovm</module></modules>
+ </profile>
+ <profile>
<id>html</id>
<modules><module>html</module></modules>
</profile>
=======================================
--- /hello/pom.xml Wed Feb 12 19:54:08 2014 UTC
+++ /hello/pom.xml Tue Nov 11 19:00:43 2014 UTC
@@ -6,7 +6,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.8.5</version>
+ <version>1.9-SNAPSHOT</version>
</parent>

<artifactId>playn-hello</artifactId>
@@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
- <playn.version>1.8.5</playn.version>
+ <playn.version>1.9-SNAPSHOT</playn.version>
</properties>

<modules>
@@ -38,6 +38,14 @@
<modules><module>ios</module></modules>
</profile>
<profile>
+ <id>robosim</id>
+ <modules><module>robovm</module></modules>
+ </profile>
+ <profile>
+ <id>robodev</id>
+ <modules><module>robovm</module></modules>
+ </profile>
+ <profile>
<id>html</id>
<modules><module>html</module></modules>
</profile>
=======================================
***Additional files exist in this changeset.***

==============================================================================
Revision: 4dac2e314457
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 18:30:57 2014 UTC
Log: Share a single bg image, size it to fit.

https://code.google.com/p/playn-samples/source/detail?r=4dac2e314457

Added:
/showcase/assets/src/main/resources/assets/background.png
Deleted:
/showcase/assets/src/main/resources/assets/peas/images/bg.png
/showcase/assets/src/main/resources/assets/sprites/bg.png
/showcase/assets/src/main/resources/assets/swirl/background.png
Modified:
/showcase/core/src/main/java/playn/showcase/core/peas/PeasDemo.java
/showcase/core/src/main/java/playn/showcase/core/snake/SnakeDemo.java
/showcase/core/src/main/java/playn/showcase/core/sprites/SpritesDemo.java
/showcase/core/src/main/java/playn/showcase/core/swirl/SwirlDemo.java

=======================================
--- /dev/null
+++ /showcase/assets/src/main/resources/assets/background.png Wed Nov 12
18:30:57 2014 UTC
Binary file, no diff available.
=======================================
--- /showcase/assets/src/main/resources/assets/peas/images/bg.png Thu Feb
7 01:40:42 2013 UTC
+++ /dev/null
Binary file, no diff available.
=======================================
--- /showcase/assets/src/main/resources/assets/sprites/bg.png Thu Feb 7
01:40:42 2013 UTC
+++ /dev/null
Binary file, no diff available.
=======================================
--- /showcase/assets/src/main/resources/assets/swirl/background.png Thu
Feb 7 01:40:42 2013 UTC
+++ /dev/null
Binary file, no diff available.
=======================================
--- /showcase/core/src/main/java/playn/showcase/core/peas/PeasDemo.java Wed
Mar 20 21:35:48 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/peas/PeasDemo.java Wed
Nov 12 18:30:57 2014 UTC
@@ -51,8 +51,9 @@
@Override
public void init() {
// load and show our background image
- Image bgImage = assets().getImage("peas/images/bg.png");
+ Image bgImage = assets().getImage("background.png");
bgLayer = graphics().createImageLayer(bgImage);
+ bgLayer.setSize(graphics().screenWidth(), graphics().screenHeight());
graphics().rootLayer().add(bgLayer);

// create our world layer (scaled to "world space")
=======================================
--- /showcase/core/src/main/java/playn/showcase/core/snake/SnakeDemo.java
Wed Mar 20 21:35:48 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/snake/SnakeDemo.java
Wed Nov 12 18:30:57 2014 UTC
@@ -46,8 +46,9 @@
graphics().rootLayer().add(layer);

// create and add background image layer
- Image bgImage = assets().getImage("sprites/bg.png");
+ Image bgImage = assets().getImage("background.png");
ImageLayer bgLayer = graphics().createImageLayer(bgImage);
+ bgLayer.setSize(graphics().screenWidth(), graphics().screenHeight());
bgLayer.setDepth(-1);
layer.add(bgLayer);

=======================================
---
/showcase/core/src/main/java/playn/showcase/core/sprites/SpritesDemo.java
Wed Mar 20 21:35:48 2013 UTC
+++
/showcase/core/src/main/java/playn/showcase/core/sprites/SpritesDemo.java
Wed Nov 12 18:30:57 2014 UTC
@@ -47,8 +47,9 @@
ding = assets().getSound("sprites/ding");

// create and add background image layer
- Image bgImage = assets().getImage("sprites/bg.png");
+ Image bgImage = assets().getImage("background.png");
ImageLayer bgLayer = graphics().createImageLayer(bgImage);
+ bgLayer.setSize(graphics().screenWidth(), graphics().screenHeight());
layer.add(bgLayer);

// add a listener for pointer (mouse, touch) input
=======================================
--- /showcase/core/src/main/java/playn/showcase/core/swirl/SwirlDemo.java
Wed Mar 20 21:35:48 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/swirl/SwirlDemo.java
Wed Nov 12 18:30:57 2014 UTC
@@ -37,25 +37,18 @@

@Override
public void init() {
- pointer().setListener(new Pointer.Adapter() {
- @Override
- public void onPointerStart(Pointer.Event event) {
- doStuff();
- }
- });
-
- Image background = assets().getImage("swirl/background.png");
- Image catgirl = assets().getImage("swirl/girlcat.png");
+ Image background = assets().getImage("background.png");
+ bgLayer = graphics().createImageLayer(background);
+ bgLayer.setSize(graphics().screenWidth(), graphics().screenHeight());
+ bgLayer.setDepth(-1);
+ graphics().rootLayer().add(bgLayer);

groupLayer = graphics().createGroupLayer();
groupLayer.setOrigin(128, 128);
groupLayer.transform().translate(256, 256);
graphics().rootLayer().add(groupLayer);

- bgLayer = graphics().createImageLayer(background);
- bgLayer.setDepth(-1);
- graphics().rootLayer().add(bgLayer);
-
+ Image catgirl = assets().getImage("swirl/girlcat.png");
layer0 = graphics().createImageLayer(catgirl);
layer1 = graphics().createImageLayer(catgirl);
layer2 = graphics().createImageLayer(catgirl);
@@ -85,9 +78,6 @@
bgLayer = null;
layer0 = layer1 = layer2 = layer3 = null;
}
-
- private void doStuff() {
- }

int elapsed;


==============================================================================
Revision: 8df81e58287d
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 18:37:20 2014 UTC
Log: Wrap tip label if too wide.

https://code.google.com/p/playn-samples/source/detail?r=8df81e58287d

Modified:
/showcase/core/src/main/java/playn/showcase/core/Menu.java

=======================================
--- /showcase/core/src/main/java/playn/showcase/core/Menu.java Tue Mar 26
20:12:32 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/Menu.java Wed Nov 12
18:37:20 2014 UTC
@@ -81,7 +81,8 @@
Group buttons;
root.add(new Label("PlayN Demos:"),
buttons = new Group(AxisLayout.vertical().offStretch()),
- new Label("ESC/BACK key or two-finger tap returns to menu
from demo"),
+ new Label("ESC/BACK key or two-finger tap returns to menu
from demo").addStyles(
+ Style.TEXT_WRAP.is(true)),
new Label("(renderer: " + graphics().getClass().getName()
+ ")"),
new Label("(device: " + showcase.deviceService.info()
+ ")").addStyles(
Style.TEXT_WRAP.is(true)));

==============================================================================
Revision: 70c1ccb59c59
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 22:07:49 2014 UTC
Log: Show screen width x height.

https://code.google.com/p/playn-samples/source/detail?r=70c1ccb59c59

Modified:
/showcase/core/src/main/java/playn/showcase/core/Menu.java

=======================================
--- /showcase/core/src/main/java/playn/showcase/core/Menu.java Wed Nov 12
18:37:20 2014 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/Menu.java Wed Nov 12
22:07:49 2014 UTC
@@ -83,7 +83,8 @@
buttons = new Group(AxisLayout.vertical().offStretch()),
new Label("ESC/BACK key or two-finger tap returns to menu
from demo").addStyles(
Style.TEXT_WRAP.is(true)),
- new Label("(renderer: " + graphics().getClass().getName()
+ ")"),
+ new Label("(renderer: " +
graphics().getClass().getSimpleName() + " " +
+ graphics().screenWidth() + "x" +
graphics().screenHeight() + ")"),
new Label("(device: " + showcase.deviceService.info()
+ ")").addStyles(
Style.TEXT_WRAP.is(true)));


==============================================================================
Revision: d0c9374f9881
Author: Michael Bayne <m...@samskivert.com>
Date: Wed Nov 12 22:57:06 2014 UTC
Log: Grok device rotations.

https://code.google.com/p/playn-samples/source/detail?r=d0c9374f9881

Modified:
/showcase/core/src/main/java/playn/showcase/core/Demo.java
/showcase/core/src/main/java/playn/showcase/core/Menu.java
/showcase/core/src/main/java/playn/showcase/core/Showcase.java
/showcase/robovm/src/main/java/playn/showcase/robovm/ShowcaseRoboVM.java

=======================================
--- /showcase/core/src/main/java/playn/showcase/core/Demo.java Wed Mar 20
21:35:48 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/Demo.java Wed Nov 12
22:57:06 2014 UTC
@@ -56,6 +56,13 @@
*/
public void paint(float alpha) {
}
+
+ /**
+ * Called when the device has rotated to a new orientation.
+ */
+ public void didRotate () {
+ // nada
+ }

/**
* Because the showcase uses a few keys to move between demos, a demo
must not register a
=======================================
--- /showcase/core/src/main/java/playn/showcase/core/Menu.java Wed Nov 12
22:07:49 2014 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/Menu.java Wed Nov 12
22:57:06 2014 UTC
@@ -53,6 +53,7 @@
private final Showcase showcase;

private Interface iface;
+ private Root root;
private GroupLayer layer;

public Menu (Showcase showcase) {
@@ -73,7 +74,7 @@
iface = new Interface();

// create our demo interface
- Root root = iface.createRoot(AxisLayout.vertical().gap(15),
SimpleStyles.newSheet());
+ root = iface.createRoot(AxisLayout.vertical().gap(15),
SimpleStyles.newSheet());
root.setSize(graphics().width(), graphics().height());

root.addStyles(Style.BACKGROUND.is(Background.solid(0xFF99CCFF).inset(5)));
layer.add(root.layer);
@@ -100,11 +101,17 @@
});
}
}
+
+ @Override
+ public void didRotate () {
+ root.setSize(graphics().width(), graphics().height());
+ }

@Override
public void shutdown() {
if (iface != null) {
pointer().setListener(null);
+ root = null;
iface = null;
}
layer.destroy();
=======================================
--- /showcase/core/src/main/java/playn/showcase/core/Showcase.java Wed Mar
20 21:35:48 2013 UTC
+++ /showcase/core/src/main/java/playn/showcase/core/Showcase.java Wed Nov
12 22:57:06 2014 UTC
@@ -62,6 +62,10 @@
super(Demo.UPDATE_RATE);
this.deviceService = deviceService;
}
+
+ public void didRotate() {
+ activeDemo.didRotate();
+ }

public boolean shouldExitOnBack() {
// the BACK button will get procesesd by Android immediately *after*
we move to the main menu,
=======================================
---
/showcase/robovm/src/main/java/playn/showcase/robovm/ShowcaseRoboVM.java
Tue Nov 11 19:00:43 2014 UTC
+++
/showcase/robovm/src/main/java/playn/showcase/robovm/ShowcaseRoboVM.java
Wed Nov 12 22:57:06 2014 UTC
@@ -18,6 +18,8 @@
import org.robovm.apple.uikit.UIApplicationDelegateAdapter;
import org.robovm.apple.uikit.UIApplicationLaunchOptions;
import org.robovm.apple.uikit.UIDevice;
+import org.robovm.apple.uikit.UIInterfaceOrientation;
+import org.robovm.apple.uikit.UIInterfaceOrientationMask;

import playn.robovm.RoboPlatform;
import playn.showcase.core.Showcase;
@@ -27,12 +29,14 @@
@Override
public boolean didFinishLaunching (UIApplication app,
UIApplicationLaunchOptions launchOpts) {

- RoboPlatform pf = RoboPlatform.register(app);
+ RoboPlatform.Config config = new RoboPlatform.Config();
+ config.orients = UIInterfaceOrientationMask.All;
+ RoboPlatform pf = RoboPlatform.register(app, config);
// Retain platform object until the application is deallocated.
Prevents Java GC from
// collecting things too early.
addStrongRef(pf);

- pf.run(new Showcase(new Showcase.DeviceService() {
+ final Showcase game = new Showcase(new Showcase.DeviceService() {
public String info () {
UIDevice device = UIDevice.getCurrentDevice();
return "iOS [model=" + device.getModel() +
@@ -40,7 +44,14 @@
", name=" + device.getName() +
", orient=" + device.getOrientation() + "]";
}
- }));
+ });
+ pf.setListener(new RoboPlatform.OrientationListener() {
+ public void willRotate(UIInterfaceOrientation toOrient, double
duration) {}
+ public void didRotate(UIInterfaceOrientation orientation) {
+ game.didRotate();
+ }
+ });
+ pf.run(game);
return true;
}


==============================================================================
Revision: 0f4a74f00eda
Author: Michael Bayne <m...@samskivert.com>
Date: Thu Nov 13 23:29:27 2014 UTC
Log: Use 1.9-alpha1 release.

https://code.google.com/p/playn-samples/source/detail?r=0f4a74f00eda

Modified:
/cute/pom.xml
/hello/pom.xml
/showcase/pom.xml

=======================================
--- /cute/pom.xml Tue Nov 11 19:00:43 2014 UTC
+++ /cute/pom.xml Thu Nov 13 23:29:27 2014 UTC
@@ -6,7 +6,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.9-SNAPSHOT</version>
+ <version>1.9-alpha1</version>
</parent>

<artifactId>playn-cute</artifactId>
@@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
- <playn.version>1.9-SNAPSHOT</playn.version>
+ <playn.version>1.9-alpha1</playn.version>
</properties>

<modules>
=======================================
--- /hello/pom.xml Tue Nov 11 19:00:43 2014 UTC
+++ /hello/pom.xml Thu Nov 13 23:29:27 2014 UTC
@@ -6,7 +6,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.9-SNAPSHOT</version>
+ <version>1.9-alpha1</version>
</parent>

<artifactId>playn-hello</artifactId>
@@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
- <playn.version>1.9-SNAPSHOT</playn.version>
+ <playn.version>1.9-alpha1</playn.version>
</properties>

<modules>
=======================================
--- /showcase/pom.xml Tue Nov 11 19:00:43 2014 UTC
+++ /showcase/pom.xml Thu Nov 13 23:29:27 2014 UTC
@@ -6,7 +6,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.9-SNAPSHOT</version>
+ <version>1.9-alpha1</version>
</parent>

<artifactId>playn-showcase</artifactId>
@@ -15,7 +15,7 @@
<packaging>pom</packaging>

<properties>
- <playn.version>1.9-SNAPSHOT</playn.version>
+ <playn.version>1.9-alpha1</playn.version>
</properties>

<modules>
Reply all
Reply to author
Forward
0 new messages