Problem with AppState


I got a small problem with my game AppState. I got main class ( which extends SimpleApplication and call to run. GameState extends AbstractAppState. And all works but as you can see i had to comment all lines with: mouseInput, inputManager, cam, flyCam, audioRenderer, player because when i leave them i get error NullPointerExcept. - because they DONT EXIST.

And here’s a question: how fix that? When class extend SimpleApplication there’s no problem with that, is that all defined in SimpleApplication class? How i can create them without extending this SimpleApplication?

Pass them along when you create the app state or get them from Application when the app state is initialized.

So they all are avaible from Application.class?


Knowing where the javadoc is is like a super power I guess.