Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function center(y,string)
- local w,h = term.getSize()
- local x = (w/2)-(#string/2)
- term.setCursorPos(x,y)
- print(string)
- end
- -- check for memory card
- --local function memCard()
- --if fs.exists("/disk2/.memcard/Jaguar") or fs.exists("/disk/.memcard/Jaguar") then
- --term.setBackgroundColour(colours.black)
- --term.clear()
- --center(3,"Memory Card Inserted")
- --center(6,"What would you like to do with this?")
- --term.setBackgroundColour(colours.blue)
- --center(8," Browse Files ")
- --term.setBackgroundColour(colours.red)
- --center(9," Ignore ")
- --term.setBackgroundColour(colours.black)
- --end
- --end
- -- check if game disk is in
- local function diskCheck()
- if fs.exists("/disk/boot") then term.setBackgroundColour(colours.black)
- term.clear()
- shell.run("/disk/boot")
- elseif fs.exists("/disk/startgame") then term.setBackgroundColour(colours.blue)
- term.clear()
- term.setTextColour(colours.white)
- center(6,"Jaguar has crashed!")
- center(9,"Reason: Unaccepted disk format")
- center(12,"Rebooting in 8 seconds...")
- sleep(8)
- os.reboot()
- end
- end
- os.loadAPI("/.Jaguar/apis/jagapi")
- term.setBackgroundColour(colours.black)
- term.clear()
- paintutils.drawImage(paintutils.loadImage("/Jaguar/screen"),1,1)
- sleep(1.8)
- term.setBackgroundColour(colours.green)
- term.clear()
- --memCard()
- sleep()
- local function flash()
- term.setBackgroundColour(colours.red)
- term.setTextColour(colours.black)
- term.clear()
- diskCheck()
- center(9,"Please insert disk")
- end
- local function insert()
- flash()
- sleep(0.5)
- term.clear()
- sleep(0.5)
- flash()
- sleep(0.5)
- term.clear()
- sleep(0.5)
- flash()
- end insert()
- for i=1,50 do
- insert()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement