You are right, it would be a simple matter of changing the paint order, so the menu object is under to notations object. But you really do not want to be able to call the menu at all when the notations object is up. Therefore, I probably should have used 'rightClick' to initiate the menu object (that would avoid the calling of the menu object when the notations object is up). Unfortunately, the laptop I created it on crashed, and I do not have the files to correct anything.
There are a few other gliches that I have come across, also.
One more thing: you are adding the rocks into the world at random locations (which is fine), but it would be good the make sure that one does not start at (or intersecting) the marble (or even close and moving toward -- which would be harder to check for). The best way is probably to start the rocks near the edges of the world. Maybe something like [code]int rockX = (Greenfoot.getRandomNumber(getWidth() - 200) + getWidth() / 2 + 100) % getWidth();
int rockY = (Greenfoot.getRandomNumber(getHeight() - 200) + getHeight() / 2 + 100) % getHeight();
addObject(new Rock(), rockX, rockY);[/code]
You could add a scoring scheme to it (maybe a point for each 10 act cycles survived, or something like that). You might want to slow the rocks down a bit to start and as the score increases, slowly increment the speed of the rocks to make it harder.
2012/2/8
GravityBalls
2012/2/8
CrashLanding
2012/2/8
Progress bar/Health bar class
2012/2/8
AddThis
2012/2/8
Progress bar/Health bar class
2012/2/7
ChessWorld
2012/2/2
Marble Dodger
2012/2/1
Marble Dodger
2012/1/25
Solitaire