I make some configs, map loading etc. in a Swing JFrame, and from there I start my SimpleGame. Now I looked for a nice method for closing my SimpleGame, and the only which sounds good was quit(). However, when I looked in the implementation in BaseSimpleGame, I found this:
Of course, this also kills my JFrame. So, long story short: How can I end my SimpleGame with sources released and everything, but let my JFrame alive?
If nothing helps, I could call SimpleGame from another VM, e.g. with System.execute, but I can't imagine that there is no other way to end SimpleGame properly...
Yeah, this is on my list. The JFrame is just a quick-and-dirty solution, of course I want to have in-game menus later, and of course the best way for these things are GameStates and StandardGame. However, I want to release something, so if you still have one of your SimpleGame ending code snippets, I would be glad…
If not, I can still use System.execute, which would be OK as a temporary solution…