colobot-data/ai/tsniff.txt

26 lines
267 B
Plaintext
Raw Normal View History

extern void object::Example( )
{
for ( int y=0 ; y<6 ; y=y+1 )
{
for ( int x=0 ; x<5 ; x=x+1 )
{
sniff();
move(5);
}
sniff();
if ( y%2 == 0 )
{
turn(90);
move(5);
turn(90);
}
else
{
turn(-90);
move(5);
turn(-90);
}
}
}