View Single Post
Old Aug 25th, 2008, 08:14 PM   #2 (permalink)  
Monk
Senior Member
 
Monk's Avatar
 
Join Date: Jun 7, 2006 - 1:21 pm
Location: monkVille
Posts: 13,310
Blog Entries: 16

Relaxed


Example Code:: (CODE ENDS AT "End" statement hence they are 5 differnt codes)

rLocate 300,300,45,40,Red
End
================================================== =========
rLocate 100,100
rTurn 90
rForward 300
rTurn 45
rForward 50
rTurn -90
rForward -200

End
=====================================Ract-circle- trun======
rectangle 300,300,500,500,red,red
circle 100,100,200,200,blue,blue
circle 600,500,700,550,magenta,magenta

rlocate 50,50
rturn 90
rforward 700
rturn 90
rForward 530
rturn 90
rForward 600
End

========================Bad code======================

rLocate 400,300
for a=1 to 60 // loop

if rBumper()=0 then rForward a
next

End
=========================== Rfeel ==Infrared sensor===================

rLocate 400,300
for a=1 to 60 // loop

if rFeel()=0 then rForward a
next

End







ﺃﷲ ﻧﯣﺮ ﺇﺴﻣﺇﯣﺇﺕ ﯣﺇﻠﺄﺮﺾ ''Then God created light, There was still nothing but we were able to see'' "forgot who said it "
Monk is offline   Reply With Quote