code_junkie

Suggested platform/tools for rapid game development and game prototyping

Nov 12th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class HelloWorld extends SimpleGame{
  2. public static void main(String[] args) {
  3. HelloWorld app = new HelloWorld(); // Create Object
  4. // Signal to show properties dialog
  5. app.setConfigShowMode(ConfigShowMode.AlwaysShow);
  6. app.start(); // Start the program
  7. }
  8. protected void simpleInitGame() {
  9. // Make a box
  10. Box b = new Box("Mybox", new Vector3f(0,0,0), new Vector3f(1,1,1));
  11. rootNode.attachChild(b); // Put it in the scene graph
  12. }
  13. }
Add Comment
Please, Sign In to add comment