mirror of https://github.com/dirtbags/moth.git
32 lines
379 B
Plaintext
32 lines
379 B
Plaintext
Name: Rabbit With Gun
|
|
Author: Neale
|
|
Sensor: 50 0 0 1
|
|
Sensor: 70 0 50 0
|
|
|
|
100 100 move
|
|
|
|
( Always set turret to 180 degrees )
|
|
180 setturret
|
|
|
|
( Vary walk 1/8 of the time )
|
|
8 random
|
|
0 =
|
|
{
|
|
2 random
|
|
0 =
|
|
{ 70 100 move }
|
|
{ 100 70 move }
|
|
ifelse
|
|
}
|
|
if
|
|
|
|
( If you see something, shoot it )
|
|
0 sensoractive
|
|
{ fire }
|
|
if
|
|
|
|
( Turn, if trouble lies ahead )
|
|
1 sensoractive
|
|
{ 0 100 move }
|
|
if
|