Advertisement
Vorakh

Programma Gestione Cannone TNT

Aug 16th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. -- Nome: Programma Gestione Cannone TNT
  2. -- Programmatore: Vorakh
  3. -- Data: 16/8/2013
  4.  
  5. -- Lancia TNT
  6. function propellant(sw1)
  7.   rs.setOutput("left", sw1)
  8. end
  9. function cannonball(sw2)
  10.   rs.setOutput("back", sw2)
  11. end
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. print("Fire Controller v0.1 Alpha")
  15. sleep(3)
  16. print("Innesco propellente")
  17. propellant(true)
  18. sleep(2.5)
  19. print("Innesco palla di cannone")
  20. cannonball(true)
  21. sleep(0.1)
  22. propellant(false)
  23. cannonball(false)
  24. sleep(2)
  25. print("Sistema in Standby")
  26. sleep(3)
  27.  
  28. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement