Guest User

Untitled

a guest
Jun 24th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. print("Cheni")
  2. local n = 1
  3. local sortie = "back"
  4. local timer
  5. local running = true
  6. while running do
  7.     timer = os.startTimer(0.5)
  8.     local event, p1 = os.pullEvent()
  9.     if event == "char" and p1 == "q" then
  10.         running = false
  11.     elseif event == "timer" and p1 == timer then
  12.         rs.setBundledOutput(sortie, n)
  13.         n = n * 2
  14.         if n > 1024 then
  15.             n = 1
  16.         end
  17.     end
  18. end
  19. print("FIN !")
Add Comment
Please, Sign In to add comment