Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local w, h = term.getSize()
- term.clear()
- term.setCursorPos(1, 1)
- local header = "LordIkol's Status"
- local hlen = (w - #header) / 2
- print(string.rep("-", math.ceil(hlen)) .. header .. string.rep("-", math.floor(hlen)))
- local x1, y1 = term.getCursorPos()
- print("Traveling to the end of the universe.")
- print("Please wait...")
- write("Progress: ")
- local x2, y2 = term.getCursorPos()
- for i = 0, 10000, 0.25 do
- term.setCursorPos(x2, y2)
- local t = i / 100 .. "%"
- write(t .. string.rep(" ", w - #t))
- sleep(tonumber(math.random(0, 1) == 0 and "0." .. math.random(5, 9) or "1." .. math.random(0, 4)))
- end
- term.setCursorPos(x1, y1)
- term.clearLine()
- print("Reached the end of the universe. Now what?")
- term.clearLine(); print(); term.clearLine()
- term.setCursorPos(1, y2 - 1)
Advertisement
Add Comment
Please, Sign In to add comment