mirror of https://github.com/dirtbags/moth.git
12 lines
885 B
Plaintext
12 lines
885 B
Plaintext
|
37 40 set-speed! ( Go in circles )
|
||
|
0 sensor? { fire! } if ( Fire if turret sensor triggered )
|
||
|
1 sensor? { get-turret 90 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
2 sensor? { get-turret 180 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
3 sensor? { get-turret 270 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
4 sensor? { get-turret 45 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
5 sensor? { get-turret 135 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
6 sensor? { get-turret 225 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
7 sensor? { get-turret 315 + set-turret! } if ( Turn if collision sensor triggered )
|
||
|
|
||
|
8 sensor? { 70 20 set-speed! } if ( Turn if collision sensor triggered )
|
||
|
9 sensor? { 20 70 set-speed! } if ( Turn if collision sensor triggered )
|