|
@@ -47,11 +47,13 @@ import java.io.File;
|
|
|
|
|
|
public class TestPostWaterLake extends SimpleApplication {
|
|
|
|
|
|
- // set default for applets
|
|
|
- private static boolean useHttp = true;
|
|
|
+ private static boolean useHttp = false;
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
-
|
|
|
+ File file = new File("wildhouse.zip");
|
|
|
+ if (!file.exists()) {
|
|
|
+ useHttp = true;
|
|
|
+ }
|
|
|
TestPostWaterLake app = new TestPostWaterLake();
|
|
|
app.start();
|
|
|
}
|
|
@@ -74,7 +76,9 @@ public class TestPostWaterLake extends SimpleApplication {
|
|
|
// create the geometry and attach it
|
|
|
// load the level from zip or http zip
|
|
|
if (useHttp) {
|
|
|
- assetManager.registerLocator("http://jmonkeyengine.googlecode.com/files/wildhouse.zip", HttpZipLocator.class);
|
|
|
+ assetManager.registerLocator(
|
|
|
+ "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip",
|
|
|
+ HttpZipLocator.class);
|
|
|
} else {
|
|
|
assetManager.registerLocator("wildhouse.zip", ZipLocator.class);
|
|
|
}
|