Răsfoiți Sursa

Merge pull request #51 from mitm001/patch-7

Update hello_asset.adoc
mitm001 9 ani în urmă
părinte
comite
bc271e2bd3
1 a modificat fișierele cu 10 adăugiri și 5 ștergeri
  1. 10 5
      src/docs/asciidoc/jme3/beginner/hello_asset.adoc

+ 10 - 5
src/docs/asciidoc/jme3/beginner/hello_asset.adoc

@@ -293,7 +293,7 @@ If your executable throws a “Cannot locate resource runtime exception, check a
 
 
 === Loading Models and Scenes
-[cols="2", options="header"]
+[cols="30,70", options="header"]
 |===
 
 a| Task? 
@@ -374,9 +374,11 @@ Use the following method to load models from a zip file:
     rootNode.attachChild(gameLevel);
 ----
 
-The loadModel() method now searches this zip directly for the files to load. +(This means, do not write `loadModel(town.zip/main.scene)` or similar!)
+The loadModel() method now searches this zip directly for the files to load. +
+(This means, do not write `loadModel(town.zip/main.scene)` or similar!)
 
-.  Clean, build and run the project. +You should now see the Ninja+wall+teapot standing in a town. 
+.  Clean, build and run the project. +
+You should now see the Ninja+wall+teapot standing in a town. 
 
 *Tip:* If you register new locators, make sure you do not get any file name conflicts: Don't name all scenes `main.scene` but give each scene a unique name.
 
@@ -395,7 +397,8 @@ Earlier in this tutorial, you loaded scenes and models from the asset directory.
 
  Note that the path is relative to the `assets/…` directory.
 
-.  Clean, build and run the project. Again, you should see the Ninja+wall+teapot standing in a town. 
+.  Clean, build and run the project. +
+Again, you should see the Ninja+wall+teapot standing in a town. 
 
 Here is a third method you must know, loading a scene/model from a .j3o file:
 
@@ -414,7 +417,8 @@ Here is a third method you must know, loading a scene/model from a .j3o file:
 
  Again, note that the path is relative to the `assets/…` directory.
 
-.  Clean, Build and run the project. +Again, you should see the Ninja+wall+teapot standing in a town. 
+.  Clean, Build and run the project. +
+Again, you should see the Ninja+wall+teapot standing in a town. 
 
 
 == Conclusion
@@ -422,6 +426,7 @@ Here is a third method you must know, loading a scene/model from a .j3o file:
 Now you know how to populate the scenegraph with static shapes and models, and how to build scenes. You have learned how to load assets using the `assetManager` and you have seen that the paths start relative to your project directory. Another important thing you have learned is to convert models to .j3o format for the executable JARs etc.
 
 Let's add some action to the scene and continue with the <<jme3/beginner/hello_main_event_loop#,Update Loop>>!
+
 '''
 
 *See also:*