Tutorial code needs to be updated
See original GitHub issueThis is for: Product Version: jMonkeyEngine SDK v3.2.2-stable-sdk1 Java: 1.8.0_192; Java HotSpot™ 64-Bit Server VM 25.192-b12 System: Linux version 4.4.0-150-generic running on amd64; UTF-8; en_IN (jmonkeyplatform)
How to reproduce the issue: Start the SDK, press F1 to view the tutorials and started trying the beginner tutorial programs.
The issues: Issue 1: At least until the first 4 tutorials (HelloSimpleApplication, HelloNode, HelloAssets, HelloEventLoop and possibly more of them), there are tiny issues like the code being:
Box(1, 1, 1);
player = new Geometry("Player", b);
When it should be:
Box b = new Box(1, 1, 1);
player = new Geometry("Player", b);
Also, for example, in the tutorial “HelloInputSystem”, there are plenty of errors that show up. One being for this line: inputManager.addListener(actionListener,"Pause");
, where the error message says “actionListener has private access in SimpleApplication”, or the line inputManager.addListener(analogListener,"Left", "Right", "Rotate");
where the error message is “cannot find symbol variable analogListener”.
Issue 2:
When copying code from the tutorial and pasting it into the IDE, at multiple places, an annoying character is present which causes the IDE to show an error saying "illegal character: '\u00a0'"
. It happens in places like the one I’ve marked below as “Here”. I found that it’s a non breaking space character, but since it’s annoying to have to keep removing it once the code is pasted in the IDE, perhaps y’all could write a script to remove it from the tutorials.
public class Main extends SimpleApplication {
<----- Here
public static void main(String[] args) {
I guess these are just some simple issues caused because of JMonkeyEngine having undergone some updations, but the tutorials need corrections to remain up-to-date.
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (21 by maintainers)
Top GitHub Comments
@nav9 you can untick the Show Setting box
Thanks, @mitm001.
Who would do such a thing?? 😉