|
@@ -1,13 +1,8 @@
|
|
|
= jMonkeyEngine SDK: Sample Code
|
|
|
:author:
|
|
|
-:revnumber:
|
|
|
-:revdate: 2016/03/17 20:48
|
|
|
+:revnumber:2.0
|
|
|
+:revdate: 2020/07/10
|
|
|
:keywords: documentation, sdk, asset, project
|
|
|
-:relfileprefix: ../
|
|
|
-:imagesdir: ..
|
|
|
-:experimental:
|
|
|
-:stylesheet: twemoji-awesome.css
|
|
|
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
You can run example code by opening an included JME3Tests project and included assets. You can also search the built-in documentation or drag and drop code snippets from the Palette in the SDK to get short code sample.
|
|
@@ -16,14 +11,14 @@ You can run example code by opening an included JME3Tests project and included a
|
|
|
== Code Palette and Samples in the SDK
|
|
|
|
|
|
* Type a keyword into the search box in the SDK or press kbd:[F1] to search the built-in help for sample code.
|
|
|
-* <<sdk/code_editor#,SDK code editor and palette>>
|
|
|
+* xref:code_editor.adoc[SDK code editor and palette]
|
|
|
|
|
|
|
|
|
== The JME3Tests Project Template
|
|
|
|
|
|
The jMonkeyEngine SDK contains a Test Project with lots of sample code and assets. The Test Project is all set up and ready to run, and it's easy to use for beginners (no need to mess with classpaths or libraries).
|
|
|
|
|
|
-. Install and Open the jMonkeyEngine <<sdk#,SDK>>.
|
|
|
+. Install and Open the jMonkeyEngine xref:sdk.adoc[SDK].
|
|
|
. Go to `menu:File[New Project]`.
|
|
|
. In the New Project Wizard, select `JME3 Tests` from the `JME3` category. Click `btn:[Next]`.
|
|
|
. Specify a location, e.g. create a jMonkeyProjects directory in your home directory. Click `btn:[Finish]`.
|
|
@@ -47,9 +42,9 @@ Press kbd:[Shift] + kbd:[F6] to run a class that is open in the editor, or `btn:
|
|
|
|
|
|
== JME3TestData Assets
|
|
|
|
|
|
-You may want access to some sample assets, such as 3D models or textures, in one of your projects. A common situation for this would be while going through the <<jme3#tutorials-for-beginners#,beginner tutorials>>.
|
|
|
+You may want access to some sample assets, such as 3D models or textures, in one of your projects. A common situation for this would be while going through the xref:tutorials:beginner/beginner.adoc[beginner tutorials].
|
|
|
|
|
|
-. btn:[RMB] select an existing jME3 project in the <<sdk#,SDK>>, and select Properties.
|
|
|
+. btn:[RMB] select an existing jME3 project in the xref:sdk.adoc[SDK], and select Properties.
|
|
|
. In the Properties window, select the `Libraries` section. Go to the `Compile` tab, it contains `Compile-time Libraries`.
|
|
|
. Click the btn:[Add Library] button and select the pre-defined `jme3-test-data`. Click btn:[OK].
|
|
|
. Click btn:[OK] to save and close the Properties.
|
|
@@ -69,9 +64,9 @@ The project's assetManager now has access to sample files from the `jme3-test-da
|
|
|
== AssetPacks
|
|
|
|
|
|
[.right]
|
|
|
-image::sdk/assetpackbrowser-300x166.jpg[assetpackbrowser-300x166.jpg,width="",height=""]
|
|
|
+image::assetpackbrowser-300x166.jpg[assetpackbrowser-300x166.jpg,width="",height=""]
|
|
|
|
|
|
-If you need sample 3D models, don't miss the opportunity to download our community-provided <<sdk/asset_packs#,Asset Packs>>!
|
|
|
+If you need sample 3D models, don't miss the opportunity to download our community-provided xref:asset_packs.adoc[Asset Packs]!
|
|
|
|
|
|
In the SDK:
|
|
|
|
|
@@ -83,6 +78,3 @@ In the SDK:
|
|
|
** Preview it
|
|
|
** Add it to the SceneComposer
|
|
|
** Add it to a game project's assets directory
|
|
|
-
|
|
|
-
|
|
|
-Read more about <<sdk/asset_packs#,Asset Packs>> and how you can share your own collection with the community.
|