moth/doc/2012-02-TF4/state/lib/ctf/tanks/players/66f7602d/program

5 lines
259 B
Plaintext
Raw Normal View History

2012-02-13 12:42:08 -07:00
get-turret 12 + set-turret! ( Rotate turret )
37 40 set-speed! ( Go in circles )
0 sensor? { fire! } if ( Fire if turret sensor triggered )
1 sensor? { -50 50 set-speed! } if ( Turn if collision sensor triggered )