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

danpost's Comments

Back to danpost's profile

For the application, if you can give me your e-mail address, I would be glad to forward it to you. If you do not wish to publicly show your e-mail address, click on my user picture, open my 'Private Messaging' scenario and supply it to me there. Then, post a note that you had done so, here.
@joshbuhl, no. You are not missing anything. I did not think I had included to source to this at any time, but it does appear that I had. Do you need the code as well, or just the application?
A future update will allow Mr. Blue to move semi-continuously while the arrow keys are held down.
There is one more thing: the space bar will trigger aiming while the cue ball is still in motion; which causes the cue stick to be misplaced when to ball finally stops.
Ditto, to what Gevater_Tod4711 said. Also, if a ball is moving too fast it sometimes ends up in a rail (instead of bouncing off it); and, if moving really fast it can pass the rail completely and end up off the table completely.
@Sweet.Honeykiss, please explain what you mean by 'there are not enough numbers to win'. I may be able to help since I have also programmed one.
I will start a Discussion thread called 'On Scrolling SuperWorld by danpost'. Please ask any specifics as to what you would like to know there. I will start will a general run-down.
You may want to add a counter in your world class to track the number of new balls created and if it reaches a certain value, then 'gameOver'.
In the ball class, in the 'checkFly' method, add the following line inside the if(fly != null) block: ((Counter)world.getObjects(Counter.class).get(0)).add(5);