com.jme.app
Class SimpleGame

java.lang.Object
  extended by com.jme.app.AbstractGame
      extended by com.jme.app.BaseGame
          extended by com.jme.app.BaseSimpleGame
              extended by com.jme.app.SimpleGame

public abstract class SimpleGame
extends BaseSimpleGame

SimpleGame provides the simplest possible implementation of a main game loop. Interpolation is used between frames for varying framerates. SimpleGame takes care of 'everything' for you, all you do is implement BaseSimpleGame.simpleInitGame() to add your geometry (scenegraph) to the BaseSimpleGame.rootNode. A lightstate is provided with a single pointlight, (you can easily add more by accessing the BaseSimpleGame.lightState field) and there is an fps and stats display. The depth buffer compare function is automatically set to CF_LEQUAL. Wireframe mode and the lights may be toggled via T and L respectively. If needed, the location of the font graphic for the fps display is settable in your main method before creating your game object. Just set SimpleGame#fontLocation. It is set to a font in the jme package by default.

Version:
$Id: SimpleGame.java,v 1.62 2007/06/01 15:24:30 nca Exp $
Author:
Joshua Slack, (javadoc by cep21 and dude)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.app.AbstractGame
AbstractGame.ConfigShowMode
 
Constructor Summary
SimpleGame()
           
 
Method Summary
 
Methods inherited from class com.jme.app.BaseGame
start
 
Methods inherited from class com.jme.app.AbstractGame
finish, getVersion, setConfigShowMode, setConfigShowMode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGame

public SimpleGame()