fix for issue #982: add town.zip file to repo, load different HTTP image

accellbaker
Stephen Gold 6 years ago
parent e5fb5bfefe
commit 000ac95fd4
  1. 6
      jme3-examples/src/main/java/jme3test/asset/TestManyLocators.java
  2. BIN
      jme3-examples/town.zip

@ -43,7 +43,7 @@ public class TestManyLocators {
public static void main(String[] args){
AssetManager am = JmeSystem.newAssetManager();
am.registerLocator("http://www.jmonkeyengine.com/wp-content/uploads/2010/09/",
am.registerLocator("http://wiki.jmonkeyengine.org/jme3/beginner",
UrlLocator.class);
am.registerLocator("town.zip", ZipLocator.class);
@ -65,7 +65,7 @@ public class TestManyLocators {
AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
// Try loading directly from HTTP
AssetInfo d = am.locateAsset(new TextureKey("planet-2.jpg"));
AssetInfo d = am.locateAsset(new TextureKey("beginner-physics.png"));
if (a == null)
System.out.println("Failed to load from classpath");
@ -73,7 +73,7 @@ public class TestManyLocators {
System.out.println("Found classpath font: " + a.toString());
if (b == null)
System.out.println("Failed to load from town.zip");
System.out.println("Failed to load from town.zip file");
else
System.out.println("Found zip image: " + b.toString());

Binary file not shown.
Loading…
Cancel
Save