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

Report as inappropriate.

Super_Hippo
Super_Hippo presents ...

2015/3/23

Swarms

The green fishes are swarming and avoiding the red sharks.

Might be laggy here on the site. If so, you can download it and run it just fine in Greenfoot.

2322 views / 5 in the last 7 days

1 vote | 0 in the last 7 days

Tags: simulation with-source mass individual swarm intelligent

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2019-06-07 12:00:25 UTC Updated to Greenfoot 3.5.4
MajorCJMajorCJ

2019/6/7

You should make it so the sharks are a little faster than the fish so that they eat some
A new version of this scenario was uploaded on 2019-06-07 19:21:49 UTC Improved the code a little bit. Hopefully less laggy on the site. It was laggy for me at least. I also publish the source even though there is not much to see. Not documented either. Mainly only wanted to make it working again after such a long time that the conversion already happens here...
Super_HippoSuper_Hippo

2019/6/7

Nope, seems to be as laggy as before.... @MajorCL: Thank you for the suggestion. The sharks are only moving randomly without any purpose to eat something. If I wanted to make that, I would probably adjust the Fish's movement, so they don't avoid the Sharks perfectly. (Technically, the Sharks are able to "catch" Fish when they would team up, but they usually don't.) But this was never really meant to be something complex to be honest. If you want to see some population simulation, you can try out my two ecosystem scenarios. Well, I have to update them first, though. They are currently not working...
Super_HippoSuper_Hippo

2019/6/7

Actually I remember that the second one will never work online for some unknown reason. But you can download it. (Scenario number 19646)
Super_HippoSuper_Hippo

2019/6/7

The other (not so complex one) is also online again: 13445

Want to leave a comment? You must first log in.

Who likes this?

MajorCJ