Advertisement
Guest User

dodge2

a guest
Aug 6th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. local scr_x, scr_y = term.getSize()
  2.  
  3. inc = function(a)
  4.   local x,y = term.getCursorPos()
  5.   term.setCursorPos(x,y+a)
  6. end
  7.  
  8. renderBG = function(scroll)
  9.   local ivl = 5 --interval
  10.   term.setBackgroundColor(colors.black)
  11.   term.clear()
  12.   term.setBackgroundColor(colors.blue)
  13.   term.setCursorPos(1,(scr_y/2)-4)
  14.   term.clearLine() inc(1)
  15.   term.clearLine() inc(1)
  16.   term.setBackgroundColor(colors.cyan)
  17.   term.clearLine() inc(1)
  18.   term.setBackgroundColor(colors.lightBlue)
  19.   term.clearLine() inc(1)
  20.   term.setBackgroundColor(colors.cyan)
  21.   term.clearLine() inc(1)
  22.   term.setBackgroundColor(colors.blue)
  23.   term.clearLine() inc(1)
  24.   term.clearLine() inc(1)
  25.   -- good god that was inefficient
  26.   local pos = 1
  27.   while pos <= scr_x do
  28.    
  29.   end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement