If you no longer have the
BasicGame template open, open it again in the jMonkeyEngine SDK. Remember that you can always recreate this project template using the New Project wizard in the File menu.
Let's look at the main class of the
BasicGameproject in the Projects window.
mygame/Main.javafile in the
Main.javaopens in the source editor.
Main.javatemplate, you see a standard Java class that extends the
SimpleApplicationis the base class that we use to write all our 3D games.
The basic code sample is short enough so that you can type it yourself—we just use the