|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2009-2012 jMonkeyEngine |
| 2 | + * Copyright (c) 2009-2021 jMonkeyEngine |
3 | 3 | * All rights reserved.
|
4 | 4 | *
|
5 | 5 | * Redistribution and use in source and binary forms, with or without
|
@@ -43,28 +43,29 @@ public class TestManyLocators {
|
43 | 43 | public static void main(String[] args){
|
44 | 44 | AssetManager am = JmeSystem.newAssetManager();
|
45 | 45 |
|
46 |
| - am.registerLocator("http://wiki.jmonkeyengine.org/jme3/beginner", |
47 |
| - UrlLocator.class); |
| 46 | + am.registerLocator( |
| 47 | + "https://github.com/jMonkeyEngine/wiki/raw/master/docs/modules/tutorials/assets/images/beginner/", |
| 48 | + UrlLocator.class); |
48 | 49 |
|
49 | 50 | am.registerLocator("town.zip", ZipLocator.class);
|
50 | 51 | am.registerLocator(
|
51 |
| - "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip", |
52 |
| - HttpZipLocator.class); |
53 |
| - |
| 52 | + "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jmonkeyengine/wildhouse.zip", |
| 53 | + HttpZipLocator.class); |
| 54 | + |
54 | 55 | am.registerLocator("/", ClasspathLocator.class);
|
55 | 56 |
|
56 | 57 |
|
57 | 58 |
|
58 |
| - // Try loading from Core-Data source package |
| 59 | + // Try loading from jme3-core resources using the ClasspathLocator. |
59 | 60 | AssetInfo a = am.locateAsset(new AssetKey<Object>("Interface/Fonts/Default.fnt"));
|
60 | 61 |
|
61 |
| - // Try loading from town scene zip file |
| 62 | + // Try loading from the "town.zip" file using the ZipLocator. |
62 | 63 | AssetInfo b = am.locateAsset(new ModelKey("casaamarela.jpg"));
|
63 | 64 |
|
64 |
| - // Try loading from wildhouse online scene zip file |
| 65 | + // Try loading from the Google Code Archive website using the HttpZipLocator. |
65 | 66 | AssetInfo c = am.locateAsset(new ModelKey("glasstile2.png"));
|
66 | 67 |
|
67 |
| - // Try loading directly from HTTP |
| 68 | + // Try loading from the GitHub website using the UrlLocator. |
68 | 69 | AssetInfo d = am.locateAsset(new TextureKey("beginner-physics.png"));
|
69 | 70 |
|
70 | 71 | if (a == null)
|
|
0 commit comments