I'm trying to change a BaseGame to a FixedFrameRateGame, and It's saying I need a public GameSettings getNewSettings() method. Now I tried filling out like this:
public GameSettings getNewSettings(){
return null;
}
it gives me a nullpointerexception when I try to run it.
Do you really expect people to sit around answering questions on christmas eve?
And if you define something as "null", it is most likely going to cause a null pointer exception.
You should have a look at GameSetting's constructor, and see what parameters you need to pass, then return "new GameSettings()", with the parameters inside.
Merry christmas, and good luck with your new engine.
You should have a look at GameSetting's constructor, and see what parameters you need to pass, then return "new GameSettings()", with the parameters inside.
I am trying to return new GameSettings but I get this error Cannot instantiate the type GameSettings