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.

P#144621 2024-03-27 02:40

2

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

P#145236 2024-03-31 12:41
2

so cute!!!

P#145237 2024-03-31 13:14
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.

P#145257 2024-03-31 15:43 ( Edited 2024-03-31 15:45)
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.

P#145282 2024-03-31 19:41

[Please log in to post a comment]