com.jme.app
Class SimpleGame
java.lang.Object
com.jme.app.AbstractGame
com.jme.app.BaseGame
com.jme.app.BaseSimpleGame
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)
SimpleGame
public SimpleGame()