Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local printcentred =
- function(text)
- local maxw, maxh = term.getSize() --screen dimensions
- local curx, cury = term.getCursorPos() --cursor pos
- term.setCursorPos((maxw-#text)/2,cury) --set it to the point where write will make the text centred
- term.write(text) --write the text
- term.setCursorPos(curx,cury+1) --return the cursor to the same position on the next line
- end
- local maxw, maxh = term.getSize() --screen dimensions
- term.setCursorPos(1,math.floor(maxh/2))--set cursor to the start of the upper middle line
- local monitorprintcentred =
- function(text, side)
- local monitor = peripheral.wrap("monitor_1")
- local maxw, maxh = monitor.getSize() --screen dimensions
- local curx, cury = monitor.getCursorPos() --cursor pos
- monitor.setCursorPos((maxw-#text)/2,cury) --set it to the point where write will make the text centred
- monitor.write(text) --write the text
- monitor.setCursorPos(curx,cury+1) --return the cursor to the same position on the next line
- end
- local monitor = peripheral.wrap("monitor_1") -- makes 'monitor' refer to the monitor on the left side
- local maxw, maxh =monitor.getSize() --screen dimensions
- monitor.setCursorPos(1,math.floor(maxh/2))--set cursor to the start of the upper middle line
- -- Update the program
- shell.run("rm BRRS")
- shell.run("pastebin get qYrZwMqf BRRS")
- -- Start the program
- term.setTextColor(colors.green)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[--------------------]")
- monitor.setTextColor(colors.green)
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[--------------------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[===-----------------]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[===-----------------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[======--------------]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[======--------------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[=========-----------]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[=========-----------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[============--------]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[============--------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[==============------]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[==============------]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[=================---]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[=================---]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[====================]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[====================]")
- sleep(1)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ 100% ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ 100% ]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[100%]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[100%]")
- sleep(0.5)
- term.clear()
- term.setCursorPos(1,math.floor(maxh/2))
- printcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- printcentred("[ STARTED ]")
- monitor.clear()
- monitor.setCursorPos(1,math.floor(maxh/2))
- monitorprintcentred("BigReactors Reactor Screen 0.2 by Tim3Game")
- monitorprintcentred("[ STARTED ]")
- shell.run("BRRS")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement