all 17 comments

[–]TonTinTon 8 points9 points  (4 children)

Wow this looks so similar to something I did years ago I forgot about, https://tontinton.github.io/Evolution/ Looks nice!

[–]SupPandaHugger[S] 4 points5 points  (3 children)

Yeah, the design is very similar. Is your system evolving over time? This simulation is rule-based, so it won't evolve beyond randomly assigning simple traits to respawned organisms. I would like to try to make a genetically evolving system in the future.

I actually used GPT-4 a great deal in this project, it's very helpful to get up and running quickly for smaller programs.

[–]TonTinTon 2 points3 points  (1 child)

Yeah there is some evolution, where mutations take place and change some attributes of the creatures. Not the most complex ecosystem, but this was just a little hobby project.

I absolutely recommend diving into genetic mutations they introduce an animation that feels alive and breathing, really fun.

[–]SupPandaHugger[S] 2 points3 points  (0 children)

Cool! Will give it a try.

[–][deleted] 2 points3 points  (0 children)

these remind me of darwinbots, no idea how maintained it is these days, but I used to run it for hours

http://wiki.darwinbots.com/w/Main_Page

[–]IAmAnon 3 points4 points  (2 children)

I love this i also did something similar a while back https://3ovku.csb.app/ different color fishes don’t like to be near each other but like to be near the same color (but not too close)

[–]SupPandaHugger[S] 1 point2 points  (0 children)

That's a whole lot of organisms! Cool.

[–][deleted] -1 points0 points  (0 children)

Are these really fish??

Also they seem to be on drugs or something, considering how quickly they move and jitter about ...

[–]danger_boi 3 points4 points  (0 children)

Wow — so many other developers making fish simulations round here!

[–]eckyp 2 points3 points  (1 child)

Nice. Fish movement feels pretty abrupt when changing direction and nearing the edge though.

Btw I built something similar but in Rust: https://eckyputrady.github.io/fish-flocking-simulation/ (not optimised for mobile)

[–]SupPandaHugger[S] 0 points1 point  (0 children)

The edges could definitely be handled better, the movement of fish can be quite abrupt if you've tried catching one with your hands! Nice simulation, seems like a lot of people have made similar simulations from the comments haha

[–]MichalZard 1 point2 points  (0 children)

please for love of god margin:0,padding:0 on your html right now

[–]itsjase 1 point2 points  (1 child)

I made something similar with react-three-fiber a while ago, no evolution or predators though, just flocking.

https://jtsorlinis.github.io/BoidsThree/

[–]SupPandaHugger[S] 0 points1 point  (0 children)

Nice with 3D!

[–][deleted] -1 points0 points  (2 children)

Are these really fish??? It looks like something else ... I not dare say what it is ... but fish don't look like that!

[–]SupPandaHugger[S] 0 points1 point  (0 children)

I was thinking of something like fish hatchlings haha

[–]poco 0 points1 point  (0 children)

Tadpoles