|
@@ -49,16 +49,17 @@ public class TestPostWaterLake extends SimpleApplication {
|
|
|
|
|
|
private static boolean useHttp = false;
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- File file = new File("wildhouse.zip");
|
|
|
- if (!file.exists()) {
|
|
|
- useHttp = true;
|
|
|
- }
|
|
|
+ public static void main(String[] args) {
|
|
|
TestPostWaterLake app = new TestPostWaterLake();
|
|
|
app.start();
|
|
|
}
|
|
|
|
|
|
public void simpleInitApp() {
|
|
|
+ File file = new File("wildhouse.zip");
|
|
|
+ if (!file.exists()) {
|
|
|
+ useHttp = true;
|
|
|
+ }
|
|
|
+
|
|
|
this.flyCam.setMoveSpeed(10);
|
|
|
cam.setLocation(new Vector3f(-27.0f, 1.0f, 75.0f));
|
|
|
// cam.setRotation(new Quaternion(0.03f, 0.9f, 0f, 0.4f));
|
|
@@ -67,12 +68,7 @@ public class TestPostWaterLake extends SimpleApplication {
|
|
|
rootNode.attachChild(SkyFactory.createSky(assetManager,
|
|
|
"Textures/Sky/Bright/BrightSky.dds",
|
|
|
SkyFactory.EnvMapType.CubeMap));
|
|
|
-
|
|
|
- File file = new File("wildhouse.zip");
|
|
|
|
|
|
- if (file.exists()) {
|
|
|
- useHttp = false;
|
|
|
- }
|
|
|
// create the geometry and attach it
|
|
|
// load the level from zip or http zip
|
|
|
if (useHttp) {
|