Bots and Simulations > Short bots

Gnat2.0(F3)(SB)(MysticalDumpling)1.6.14

(1/1)

Botsareus:

--- Code: ---'A plain, really, really annoying gnat
'Now with kamikaze!

start
'==========Init============
*.robage 0 =
.deltie inc
30 rnd 21 =
1 rnd 971 store
.chlr .memloc store
clearbool
*.totalmyspecies 100 >
30 rnd 30 =
21 inc
clearbool
'========Body==========
*.body 20 >
*.body 20 sub 10 mult .fdbody store
clearbool
*.body 20 <
*.nrg 300 >= and
100 .strbody store
clearbool

*.body 500 >
*21 1 = and
100 .fdbody store
clearbool
*.body 500 <
*21 1 = and
100 .strbody store
clearbool
'=======Repro=======
*.totalmyspecies 725 < and
*.nrg *.body 10 mult add 800 > and
80 *.velscalar sub 0 floor .sx store
50 .repro store
628 rnd .aimsx store
clearbool
'========Hunting Mec.=========
*.eyef 0 >
*.myeye *.refeye != and
*.refxpos *.refypos angle .setaim store
*.refvelup 100 *.eye5 sub add *.veldn abs - floor .up store
*.refveldx .dx store
clearbool
*.eye5 50 >
*.myeye *.refeye != and
-6 .shoot store

*.eye5 50 >
*971 1 = and
*.myeye *.refeye != and
-1 .shoot store
clearbool

*21 1 =
*.refkills 2 > and
*.myeye *.refeye != and
32000 .shootval store
clearbool
'=======Searching...=========
*.myeye *.refeye =
*.eye5 0 =
or
10 .up store
10 .sx store
clearbool
--- End code ---

Navigation

[0] Message Index

Go to full version