Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Butialo
(view source)
Revision as of 19:52, 30 September 2012
82 bytes added
,
19:52, 30 September 2012
→Simple example
Line 24:
Line 24:
Can also be programmed with events. The previous program is equivalent to the following:
Can also be programmed with events. The previous program is equivalent to the following:
−
local function adelante()
+
local function adelante()
-- adelante is Spanish for forward or proceed
Motores.setvel2mtr( 1, 500, 1, 500 )
Motores.setvel2mtr( 1, 500, 1, 500 )
end
end
−
local function esperar()
+
local function esperar()
-- esperar is Spanish for wait
Motores.setvel2mtr( 1, 0, 1, 0 )
Motores.setvel2mtr( 1, 0, 1, 0 )
wait( 1 )
wait( 1 )
Tonyforster
2,486
edits