Log In  


Cart #duck_boids-0 | 2024-03-27 | Embed ▽ | License: CC4-BY-NC-SA
17

A very simple boids simulation. Mainly just for tinkering with Picotron! The mouse cursor is also treated as a boid. I find that it runs pretty well up to 32 boids.

Nice wallpaper, fun to leave it as just 1 or 2 ducks flying on your desktop.

17


2

Awesome!
I tweaked it to use the theme colours, and it makes a wonderful wallpaper! Thanks a lot!


2

so cute!!!


3

Cart #yanoyuduba-0 | 2024-03-31 | Embed ▽ | License: CC4-BY-NC-SA
3

I edited your cart to get some fun waves added and reduced the number of boids (as well as removed the mouse boid) to allow it to run smoothly on the desktop! Thanks so much for this sim; I absolutely love it! You can see my code in the attached cartridge if you're curious.

EDIT: forgot to mention I also added some padding to the bounds of the screen/toroidal array so that the ducks don't blink out of existence, but rather fully leave the screen before being wrapped.


1

Excellent!
Could I suggest keeping the mouse boid, but only for the separation component?
I feel it's nice to have a source of chaos, otherwise the ducks tend to make just one big flock and never stray.



[Please log in to post a comment]