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