Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[Variables]--
- local boot1 = paintutils.loadImage("Bootscreen1")
- local boot2 = paintutils.loadImage("Bootscreen2")
- local Part4Counter = 0
- local width, height = term.getSize()
- local yPos = 6
- --[Utilites]--
- function clear()
- term.setBackgroundColor(colors.black)
- term.clear()
- end
- function printImg(img, x, y)
- paintutils.drawImage(img, x, y)
- end
- --[Main Function]--
- function BootScreen()
- --[Bootscreen Part 1]--
- for i=1, 5 do
- clear()
- term.setCursorPos(19, 9)
- term.write("Starting OS")
- textutils.slowPrint("...", 5)
- sleep(.8)
- end
- --[Bootscreen Part 2]--
- for i=1, 6 do
- clear()
- sleep(.3)
- printImg(boot1, 7, 7)
- sleep(.1)
- term.clear()
- end
- --[Bootscreen Part 3]--
- clear()
- term.setCursorPos(17,10)
- textutils.slowPrint("******************",18)
- sleep(.5)
- term.setCursorPos(17,10)
- textutils.slowPrint("Module Initialized")
- for i=1, 3 do
- term.setCursorPos(17,10)
- sleep(.01)
- print("Module ")
- sleep(.1)
- term.setCursorPos(17,10)
- print("Module Initialized")
- end
- sleep(1)
- --[Bootscreen Part 4]--
- for i=1, 4 do
- term.setBackgroundColor(colors.black)
- printImg(boot2, 17, yPos)
- yPos = yPos+2
- sleep(.3)
- end
- yPos = 6
- for i=1, 4 do
- Part4Counter = Part4Counter+1
- if Part4Counter==3 then
- term.setCursorPos(16, 10)
- textutils.slowPrint(" Boot Sequence ", 5000)
- term.setCursorPos(17, yPos+2)
- textutils.slowPrint(" ",80)
- term.setCursorPos(16, 10)
- elseif Part4Counter==4 then
- break
- else
- term.setBackgroundColor(colors.black)
- term.setCursorPos(17, yPos)
- textutils.slowPrint(" ",80)
- yPos = yPos+2
- term.setCursorPos(1,1)
- sleep(.01)
- end
- end
- --[Bootscreen Part 5]
- end
- --[Main Program]--
- BootScreen()
Add Comment
Please, Sign In to add comment