General > DB Art
Swarm Art
(1/1)
Ammeh:
Just thought this looked cool. The bot is Animal_Swarm.
Numsgil:
Interesting circle in the middle. What causes that?
Ammeh:
These two genes:
--- Code: ---cond
*.refeye *.myeye =
*.eye5 0 = or
*.totalmyspecies rnd *.timer 5 mult add 32000 mod dup dist *.totalmyspecies <
start
314 rnd .aimdx store
stop
cond
*.totalmyspecies rnd *.timer 5 mult add 32000 mod dup dist *.totalmyspecies >
*.refeye *.myeye =
*.eye5 0 = or
start
*.totalmyspecies rnd *.timer 5 mult add 32000 mod dup angle .setaim store
10 .up store
stop
--- End code ---
Basically: The swarm moves toward a certain point based on *.timer, but allows a maximum distance from that point based on *.totalmyspecies.
I've never seen it quite so well defined though, which made me want to share :)
spike43884:
Hmm...so its a pack-bot
Navigation
[0] Message Index
Go to full version