Fixes error of loading assets
This commit is contained in:
parent
7e3ae5e8ca
commit
21cbdb5da3
@ -61,16 +61,17 @@ public class TestQ3 extends SimpleApplication implements ActionListener {
|
|||||||
private static boolean useHttp = false;
|
private static boolean useHttp = false;
|
||||||
private boolean left=false,right=false,up=false,down=false;
|
private boolean left=false,right=false,up=false,down=false;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
File file = new File("quake3level.zip");
|
|
||||||
if (!file.exists()) {
|
|
||||||
useHttp = true;
|
|
||||||
}
|
|
||||||
TestQ3 app = new TestQ3();
|
TestQ3 app = new TestQ3();
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void simpleInitApp() {
|
public void simpleInitApp() {
|
||||||
|
File file = new File("quake3level.zip");
|
||||||
|
if (!file.exists()) {
|
||||||
|
useHttp = true;
|
||||||
|
}
|
||||||
|
|
||||||
bulletAppState = new BulletAppState();
|
bulletAppState = new BulletAppState();
|
||||||
stateManager.attach(bulletAppState);
|
stateManager.attach(bulletAppState);
|
||||||
flyCam.setMoveSpeed(100);
|
flyCam.setMoveSpeed(100);
|
||||||
|
@ -54,11 +54,7 @@ public class TestMultiplesFilters 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;
|
|
||||||
}
|
|
||||||
TestMultiplesFilters app = new TestMultiplesFilters();
|
TestMultiplesFilters app = new TestMultiplesFilters();
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
@ -67,6 +63,11 @@ public class TestMultiplesFilters extends SimpleApplication {
|
|||||||
boolean en = true;
|
boolean en = true;
|
||||||
|
|
||||||
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(6.0344796f, 1.5054002f, 55.572033f));
|
cam.setLocation(new Vector3f(6.0344796f, 1.5054002f, 55.572033f));
|
||||||
cam.setRotation(new Quaternion(0.0016069f, 0.9810479f, -0.008143323f, 0.19358753f));
|
cam.setRotation(new Quaternion(0.0016069f, 0.9810479f, -0.008143323f, 0.19358753f));
|
||||||
|
@ -63,17 +63,18 @@ public class TestSceneLoading extends SimpleApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
// load sky
|
// load sky
|
||||||
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 = true;
|
|
||||||
}
|
|
||||||
// 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) {
|
||||||
|
@ -49,16 +49,17 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
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));
|
||||||
@ -67,12 +68,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) {
|
||||||
|
@ -51,7 +51,7 @@ import java.io.File;
|
|||||||
public class TestSceneWater extends SimpleApplication {
|
public class TestSceneWater extends SimpleApplication {
|
||||||
|
|
||||||
// set default for applets
|
// set default for applets
|
||||||
private static boolean useHttp = true;
|
private static boolean useHttp = false;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
@ -60,6 +60,11 @@ public class TestSceneWater extends SimpleApplication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
Node mainScene=new Node();
|
Node mainScene=new Node();
|
||||||
cam.setLocation(new Vector3f(-27.0f, 1.0f, 75.0f));
|
cam.setLocation(new Vector3f(-27.0f, 1.0f, 75.0f));
|
||||||
@ -70,11 +75,7 @@ public class TestSceneWater extends SimpleApplication {
|
|||||||
"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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user