Marlingaming

CC Tweaked - Blood Path Dead Strings - Start

Feb 10th, 2022 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local FileSystem = "2.0.0"
  2. local w, h = term.getSize()
  3.  
  4. local function CenterText(y,text)
  5. local x = math.floor((w - string.len(text)) /2)
  6. term.setCursorPos(x,y)
  7. term.clearLine()
  8. term.write(text)
  9. end
  10.  
  11. local function Clear()
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. end
  15.  
  16. local function DownloadImportantFiles()
  17.  
  18. end
  19.  
  20. function Start()
  21. term.setBackgroundColor(colors.lightBlue)
  22. Clear()
  23. CenterText(2,"Blood Path")
  24. CenterText(3,"Dead Strings")
  25. CenterText(4,"start game!")
  26. repeat
  27. local a, b, c, d = os.pullEvent("mouse_click")
  28. until d == 4
  29. if fs.exists("os/System/Programs/BloodPath/Base") then
  30. shell.run("os/System/Programs/BloodPath/Base")
  31. else
  32. CenterText(7,"Base Files missing, downloading now")
  33. DownloadImportantFiles()
  34. end
  35. end
  36.  
  37. settings.load(".settings")
  38. if settings.get("os_Version") == "CCSPS - Iron" then
  39. Start()
  40. else
  41. Clear()
  42. print("incompatible System")
  43. print("Compatible Systems:")
  44. print("CCSPS - Iron”)
  45. os.sleep(3)
  46. end
Advertisement
Add Comment
Please, Sign In to add comment