Author Topic: Swarm Art  (Read 369 times)

Offline Sammeh

  • Queen of the Internets
  • Administrator
  • Bot Destroyer
  • *****
  • Posts: 140
    • View Profile
Swarm Art
« on: September 16, 2010, 12:06:24 PM »
Just thought this looked cool. The bot is Animal_Swarm.


Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7200
    • View Profile
Re: Swarm Art
« Reply #1 on: September 16, 2010, 12:22:38 PM »
Interesting circle in the middle.  What causes that?

Offline Sammeh

  • Queen of the Internets
  • Administrator
  • Bot Destroyer
  • *****
  • Posts: 140
    • View Profile
Re: Swarm Art
« Reply #2 on: September 17, 2010, 09:27:45 AM »
These two genes:

Code: [Select]
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

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 :)