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

danpost's Comments

Back to danpost's profile

@pingfeng, start a discussion thread. Show what you are working with and explain exactly what you are trying to do.
@nolttr21, Yes, a "black" hole is created; and it will try to pull the entire universe into itself. It is a massive singularity I mentioned in the description.
@Nahquin, I first created a List object filled with all Particle objects in the world (named 'particles'). All particles in the list must interact with every other particle in the list. So, all different pairs of particles ('a' and 'b') are taken from the list (using the 'get' method) and passed to the 'interact' method where their gravitational interaction is applied.
@Nahquin, the scenario was written in 2013 -- before the isAtEdge method was a member of the Actor class.
Nice 'Initialising...' screen.
@TheGoldenProof, actually I did see the coding train video. My fresh idea was the rotating of the shapes drawn.
@ErnieBoi, thanks -- fixed (cannot pass 1).
@momochow, unfortunately that was on a computer on which the mother (f) board fried. No source is available for me to update. Sorry :(
danpostdanpost

2018/8/28

Not really useful unless you use it properly. Notice how your slower moving flakes only go horizontally and vertically and slightly faster ones might go diagonally (along multiples of 45 degrees). This is caused by hardware constraints (pixel locations on the screen). Better use of the class would allow any angle at any speed.