Guest User

Untitled

a guest
Jan 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. width,height=term.getSize()
  2.  
  3. function C64()
  4. term.setBackgroundColor(colors.blue)
  5. for i=1,width do for j=1,height do term.setCursorPos(i,j) io.write(" ") end end
  6. term.setBackgroundColor(colors.lightBlue)
  7. term.setCursorPos(1,1)
  8. for i=1,height do
  9. if (i==1) or (i==height) then
  10. for j=1,width do
  11. term.setCursorPos(j,i)
  12. io.write(" ")
  13. end
  14. else
  15. for k=1,width do
  16. if k==1 or k==width then
  17. term.setCursorPos(k,i)
  18. io.write(" ")
  19. end
  20. end
  21. end
  22. end
  23. term.setBackgroundColor(colors.blue)
  24. term.setTextColor(colors.lightBlue)
  25. term.setCursorPos(10,2)
  26. io.write("**** COMMODORE 64 BASIC V2 ****")
  27. term.setCursorPos(2,3)
  28. io.write("64K RAM SYSTEM 38911 BASIC BYTES FREE")
  29. term.setCursorPos(2,5)
  30. io.write("READY.")
  31. for i=1,7 do
  32. term.setCursorPos(2,6)
  33. term.setBackgroundColor(colors.lightBlue)
  34. io.write(" ")
  35. sleep(0.5)
  36. term.setCursorPos(2,6)
  37. term.setBackgroundColor(colors.blue)
  38. io.write(" ")
  39. sleep(0.5)
  40. end
  41. term.setCursorPos(2,6)
  42. textutils.slowPrint('LOAD"CRAFTOS",8,1')
  43. sleep(5)
  44. for i=1,200 do
  45. for i=1,height do
  46. term.setBackgroundColor(2^(math.random(0,15)))
  47. for j=1,width do
  48. term.setCursorPos(j,i)
  49. io.write(" ")
  50. end
  51. end
  52. end
  53. term.setTextColor(colors.white)
  54. end
Add Comment
Please, Sign In to add comment