View difference between Paste ID: qRb8arht and aDcECafC
SHOW: | | - or go back to the newest paste.
1
local lp = shell.resolve(".")
2
local w,h = term.getSize()
3
local t = w/2 - 3
4
local y = h/2 - 3
5
os.loadAPI(lp.."/gameutils")
6
local updateRate = 0.3
7
8
local function taskBar()
9
  print("==VERR=============================================")
10
end
11-
local function runGame()
11+
12
local fin = gameutils.loadAnimation(lp.."/.startup/fin.nfa", t, y, 1)
13
fin.timerID = os.startTimer(updateRate)
14
15
local function runLoad()
16
  while true do
17
  term.setBackgroundColour(colours.lightGrey)
18
  term.clear()
19
  fin:draw()
20
  
21
  local id,key = os.pullEvent("timer")
22
  if fin:update(key) then
23
    fin.timerID = os.startTimer(updateRate)
24
  end
25-
    --code
25+
26
  if fin.currentFrame == fin.upperBound then
27
    term.setCursorPos(1,1)
28
    term.clear()
29
    sleep(1)
30
    term.clear()
31-
runGame()
31+
32
    taskBar()
33
    print("Welcome to VERR OS, LDShadowLord")
34
    shell.setAlias("firewolf","ProgramFiles/firewolf")
35
    shell.setAlias("fw","ProgramFiles/firewolf")
36
    shell.setAlias("thunderbird","ProgramFiles/thunderbird")
37
    shell.setAlias("tb","ProgramFiles/thunderbird")
38
    shell.setAlias("npaintpro","ProgramFiles/npaintpro")
39
    shell.setAlias("npp","ProgramFiles/npaintpro")
40
    shell.setAlias("lightshot","ProgramFiles/lightshot")
41
    print("Alias Commands Set")
42
    if fs.exists("disk") == true then
43
      print("There is a disk inserted into the drive.")
44
    end
45
    print("Type 'lock' to secure the computer")
46
    return
47
  end
48
  end
49
end
50
51
term.clear()
52
term.setCursorPos(1,1)
53
taskBar()                                              --I
54
print("VERR BIOS v0.7")
55
print("Running functions....")
56
print("Defining parameters...")
57
print("Localising variables...")
58
sleep(0.1)
59
print("Routing Alias'")
60
sleep(0.1)
61
print("Loading UI")
62
print("Accessing Interface")
63
print("Pulling ID Key...")
64
sleep(0.1)
65
print("Redirecting...")
66
runLoad()