-- title: Lesson3 -- author: Bob Grant -- desc: Lesson 3 -- script: lua x = 0 y = 0 function TIC() cls() -- update x coordinate -- 2 = left -- 3 = right if (btn(2)) then x = x - 1 end if (btn(3)) then x = x + 1 end -- update y coordinate -- 0 = up -- 1 = down if (btn(0)) then y = y - 1 end if (btn(1)) then y = y + 1 end if (x > 232) then x = 232 end if (x < 0) then x = 0 end if (y > 128) then y = 128 end if (y < 0) then y = 0 end print(x.." - "..y, x, y) end