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

2014/4/12

Make a Main Menu

BD289 BD289

2014/4/12

#
I am making game and i am only new to greenfoot. So i have done everything for the game, but i want to make a main menu. Can someone pl help me with that..thanks
danpost danpost

2014/4/12

#
My UserInfo Jumbo Maze Demo scenario has a menu and shows the code for the main world sub-class and the menu world subclass. It it fully documented so you can follow what each step does. The 'act' method of the Maze world is near the end of the class code; that is where I set active a new menu world. My Menu world has extra stuff within it, but like I said, it is fairly well documented; and pulling what you need should not be too difficult. You can always post your code and ask here if an when you come across any problems. In you wish to start with the menu first in your scenario, just instantiate it and set it active from the constructor of your main world.
BD289 BD289

2014/4/13

#
Hi danpost i went to ur scenario, but there is no place to download it...
danpost danpost

2014/4/13

#
I did not say to download it. Run the scenario on the site and press the 'm' key for the menu. The two lower buttons labeled 'Maze' and 'Menu' will display the codes for those two classes.
You need to login to post a reply.