1
0
Fork 0
mirror of https://github.com/dirtbags/moth.git synced 2025-01-05 11:30:41 -07:00
moth/doc/2011-02-UNM/state/tanks/players/c206e4c6/program

12 lines
No EOL
885 B
Text

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 )