I know the topic may not be the best, but I had no better Ideas how to describe my Problem.
We startet in school to programm our own Version of the game called Astroids.
I loved the game, when i was younger, so i spent a lot of time at home to make this game playable.
The main work ist finished so far. I have a single and a multiplayer-option, some powerups, a scorecounter etc, but I'm stuck with some problems.
First of all I hate it, that I have to restart the game by pressing the restart and to run button in greenfoot again after each death. I made a little board, where you're getting told to press 1 fur sp and 2 for mp, but I would like to have a real menu (for example like the minecraft menu with "singleplayer, muliplayer, options ... - if you can imagine what I mean) but I failed with the JButtons.
I also want the game to restart by itselfe or switch back to the menu, when the game is over. I tried to reset the "Space" by "this= new Space", but this action is prohibitet by the world-class.
I think you need the code to help me, so here's my last project. I hope you are not that shocked of my confusing code ^^
here it is