Advertisement
Guest User

uwu.lua

a guest
Jul 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | None | 0 0
  1. print ("To Exit press and hold CTRL-T")
  2.  
  3. os.loadAPI("functions")
  4.  
  5.  
  6. local m = peripheral.find("monitor")
  7. m.setTextScale(5)
  8.  
  9. m.clear()
  10. for startupX = 1, 3 do
  11. m.setCursorPos(startupX,1)
  12. m.setBackgroundColor(colors.black)
  13. m.setTextColor(colors.white)
  14. m.write("OwO")
  15. m.clear()
  16. for startupY = 1, 2 do
  17. m.setCursorPos(startupX,startupY)
  18. m.write("OwO")
  19. end
  20. end
  21. sleep(1)
  22.  
  23. m.setTextScale(1)
  24.  
  25. function localwrite(text, justify, line)
  26.     if justify == 1 then
  27.       -- Right
  28.       m.setCursorPos(1,line)
  29.       m.write(text)
  30.     elseif justify == 2 then
  31.       functions.centerText(m, text, line)
  32.       m.write(text)
  33.     elseif justify == 3 then
  34.       functions.rightJustify(m, text, line)
  35.       m.write(text)
  36.     elseif justify == 4 then
  37.       functions.splitText(m, text, ":", line)
  38.     end
  39. end
  40.  
  41. while true do
  42.   --rand = math.random (1, 10)
  43.   for cosY = 1, math.random (1, 30) do
  44.   m.setCursorPos(math.random (1, 30),math.random (1, 10))
  45.   m.write("OwO")
  46.   for cosX = 1, math.random (1, 30) do
  47.   m.setCursorPos(math.random (1, 30),math.random (1, 10))
  48.   m.write("UwU")
  49.  
  50.   for what = 1, math.random (1, 100) do
  51.   if (math.random (0, 10) > math.random (0, 100)) then
  52.     m.setCursorPos(math.random (1, 30),math.random (1, 10))
  53.     m.write("*what's this*")
  54.   end
  55.  
  56.   for i = 1, math.random (1, 14) do
  57.   --m.setBackgroundColor(2^i-1)
  58.   --term.setTextColor(2^i)
  59.   m.setTextColor(2^i)
  60.   m.setCursorPos(math.random (1, 30),math.random (1, 10))
  61.   --localwrite("OwO", 1, 1)
  62.   --functions.centerText(m, "OwO", 1)
  63.   m.write("OwO")
  64.   sleep(0.1)
  65.   end
  66.   m.clear()
  67.   end
  68.   end
  69. end
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement