Răsfoiți Sursa

Add nav for tutorials, fix links to beginner.adoc

mitm001 5 ani în urmă
părinte
comite
71792c7662

+ 4 - 4
docs/modules/ROOT/pages/jme3/advanced/update_loop.adoc

@@ -1,6 +1,6 @@
 = Main Update Loop
-:author: 
-:revnumber: 
+:author:
+:revnumber:
 :revdate: 2016/03/17 20:48
 :keywords: basegame, control, input, init, keyinput, loop, states, state
 :relfileprefix: ../../
@@ -16,7 +16,7 @@ To let you see the main update loop in context, understand that the SimpleApplic
 
 *  *Initialization* – Execute `simpleInitApp()` method once.
 *  *Main Update Loop*
-..  Input listeners respond to mouse clicks and keyboard presses – <<jme3/advanced/input_handling#,Input handling>> 
+..  Input listeners respond to mouse clicks and keyboard presses – <<jme3/advanced/input_handling#,Input handling>>
 ..  Update game state:
 ...  Update overall game state – Execute <<jme3/advanced/application_states#,Application States>>
 ...  User code update – Execute `simpleUpdate()` method
@@ -35,7 +35,7 @@ The jME window closes and the loop ends.
 
 == Usage
 
-In a trivial <<jme3/intermediate/simpleapplication#,SimpleApplication>> (such as a <<jme3/beginner#,Hello World tutorial>>), all code is either in the `simpleInitApp()` (initialization) or `simpleUpdate()` (behaviour) method – or in a helper method/class that is called from one of these two. This trivial approach will make your main class very long, hard to read, and hard to maintain. You don't need to load the whole scene at once, and you don't need to run all conditionals tests all the time.
+In a trivial <<jme3/intermediate/simpleapplication#,SimpleApplication>> (such as a xref:tutorials:beginner.adoc[Hello World tutorial]), all code is either in the `simpleInitApp()` (initialization) or `simpleUpdate()` (behaviour) method – or in a helper method/class that is called from one of these two. This trivial approach will make your main class very long, hard to read, and hard to maintain. You don't need to load the whole scene at once, and you don't need to run all conditionals tests all the time.
 
 It's a best practice to modularize your game mechanics and spread out initialization and update loop code over several Java objects:
 

+ 3 - 26
docs/modules/ROOT/pages/jme3/beginner.adoc

@@ -1,29 +1,6 @@
 = jMonkeyEngine 3: Hello World Tutorial Series
-:author: 
-:revnumber: 
-:revdate: 2016/03/17 20:48
-:relfileprefix: ../
-:imagesdir: ..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
-
-
-.  <<jme3/beginner/hello_simpleapplication#,Hello SimpleApplication>>
-.  <<jme3/beginner/hello_node#,Hello Node>>
-.  <<jme3/beginner/hello_asset#,Hello Asset>>
-.  <<jme3/beginner/hello_main_event_loop#,Hello Update Loop>>
-.  <<jme3/beginner/hello_input_system#,Hello Input System>>
-.  <<jme3/beginner/hello_material#,Hello Material>>
-.  <<jme3/beginner/hello_animation#,Hello Animation>>
-.  <<jme3/beginner/hello_picking#,Hello Picking>>
-.  <<jme3/beginner/hello_collision#,Hello Collision>>
-.  <<jme3/beginner/hello_terrain#,Hello Terrain>>
-.  <<jme3/beginner/hello_audio#,Hello Audio>>
-.  <<jme3/beginner/hello_effects#,Hello Effects>>
-.  <<jme3/beginner/hello_physics#,Hello Physics>>
-.  <<jme3/beginner/hellovector#,Hello Vector3f>>
+:author:
+:revnumber:
+:revdate: 2020/07/06
 
 Get the source code at link:https://github.com/jMonkeyEngine/jmonkeyengine/tree/master/jme3-examples/src/main/java/jme3test/helloworld[jme3-examples/src/main/java/jme3test/helloworld/].
-
-'''
-
-<<jme3#,Back to Documentation>>

+ 1 - 1
docs/modules/ROOT/pages/jme3/the_scene_graph.adoc

@@ -147,7 +147,7 @@ a| The rootNode, the guiNode, an audioNode, a custom grouping node for a vehicle
 
 == How to Use This Knowledge?
 
-Before you start creating your game, you should plan your scene graph: Which Nodes and Geometries will you need? Complete the <<jme3/beginner#,Beginner tutorials>> to learn how to load and create Spatials, how to lay out a scene by attaching, detaching, and transforming Spatials, and how to add interaction and effects to a game.
+Before you start creating your game, you should plan your scene graph: Which Nodes and Geometries will you need? Complete the xref:tutorials:beginner.adoc[Beginner tutorials] to learn how to load and create Spatials, how to lay out a scene by attaching, detaching, and transforming Spatials, and how to add interaction and effects to a game.
 
 The <<jme3#documentation-for-intermediate-users#,intermediate and advanced documentation>> gives you more details on how to put all the parts together to create an awesome 3D game in Java!
 

+ 16 - 0
docs/modules/tutorials/pages/nav.adoc

@@ -0,0 +1,16 @@
+* Tutorials
+** Beginner
+*** xref:hello_simpleapplication.adoc[Hello SimpleApplication]
+*** xref:hello_node.adoc[Hello Node]
+*** xref:hello_asset.adoc[Hello Asset]
+*** xref:hello_main_event_loop.adoc[Hello Update Loop]
+*** xref:hello_input_system.adoc[Hello Input System]
+*** xref:hello_material.adoc[Hello Material]
+*** xref:hello_animation.adoc[Hello Animation]
+*** xref:hello_picking.adoc[Hello Picking]
+*** xref:hello_collision.adoc[Hello Collision]
+*** xref:hello_terrain.adoc[Hello Terrain]
+*** xref:hello_audio.adoc[Hello Audio]
+*** xref:hello_effects.adoc[Hello Effects]
+*** xref:hello_physics.adoc[Hello Physics]
+*** xref:hellovector.adoc[Hello Vector3f]