This site requires JavaScript, please enable it in your browser!
Greenfoot back
Azzarrel
Azzarrel wrote ...

2012/8/15

Need some help with my Game

Azzarrel Azzarrel

2012/8/15

#
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
SPower SPower

2012/8/15

#
To create a menu, take a look at this course: Course the link for the pdf in the the description. The JButtons aren't compatible with Greenfoot apps, because it created another enviroment for you with Worlds, Actors, etc. To auto-start greenfoot, so you don't have to click the run button, add this line somewhere:
Greenfoot.start();
Azzarrel Azzarrel

2012/8/15

#
ty for the fast answer. I'll try it.
You need to login to post a reply.