I am extending VariableTimestepGame to create my own game class. Upon changing to JME 2.0 I was getting a crash as the getNewSettings method is not implemented yet. I simply copied the code from StandardGame, so the method now looks like this:
protected GameSettings getNewSettings() {
boolean newNode = true;
Preferences userPrefsRoot = Preferences.userRoot();
try {
newNode = !userPrefsRoot.nodeExists("");
} catch (BackingStoreException bse) { }
return new PreferencesGameSettings(
userPrefsRoot.node(""), newNode,
"game-defaults.properties");
/* To persist to a .properties file instead of java.util.prefs,
* subclass StandardGame with a getNewSettings method like this:
com.jme.system.PropertiesGameSettings pgs =
new com.jme.system.PropertiesGameSettings("pgs.properties");
pgs.load();
return pgs;
*/
}
Is there any reason why this wasn't implemented above and beyond the simple fact that you guys have so much else to do? I just wonder if this type of game was being phased out in favour of something else and if so should I try and avoid it.