Advertisement
Phins

Doodlestart

Dec 13th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. version = "1.0.4"
  2. Args = {...}
  3. if Args[1] ~= "Startup" then
  4. printError("Use Only The Launcher!!!")
  5. os.sleep(3)
  6. os.reboot()
  7. error("API ERROR",0)
  8. end
  9. shell.run("Doodle/update")
  10. LogCraft = "Doodle/LogCraft"
  11. Game = "Doodle/game"
  12. GameConfi = "Doodle/configs/Gameconfig.txt"
  13. tArgs = {}
  14. tArgs[3] = "Doodle/logs.txt"
  15. tArgs[2] = "Doodle/configs/Log.Config.txt"
  16. shell.run(LogCraft,"startup","Doodle/configs/Log.Config.txt","Doodle/logs.txt")
  17. addlog("PARTS LOADED")
  18. -------------------------------------------
  19.  
  20. tArgs = {...}
  21. sloww = textutils.slowWrite
  22. slowp = textutils.slowPrint
  23. scp = term.setCursorPos
  24. sbc = term.setBackgroundColor
  25. stc = term.setTextColor
  26. clr = term.clear
  27. drawLine = paintutils.drawLine
  28. drawPixel = paintutils.drawPixel
  29. drawBox = paintutils.drawBox
  30. red = colors.red
  31. blue = colors.blue
  32. yellow = colors.yellow
  33. orange = colors.orange
  34. green = colors.green
  35. white = colors.white
  36. black = colors.black
  37. gray = colors.gray
  38. lightGray = colors.lightGray
  39. lightBlue = colors.lightBlue
  40. left = keys.left
  41. right = keys.right
  42. up = keys.up
  43. down = keys.down
  44. enter = keys.enter
  45. addlog("STRINGS LOADED")
  46.  
  47. function Clear(color,x,y)
  48. if color then term.setBackgroundColor(color) end
  49. term.clear()
  50. if x and y then
  51. term.setCursorPos(x,y)
  52. else
  53. term.setCursorPos(1,1)
  54. end
  55. end
  56.  
  57. function timer(var)
  58. if var == "start" then
  59. return os.time()*50
  60. elseif type(var) == "number" then
  61. return os.time()*50 - var
  62. else
  63. error("Expected Stirng or Number",2)
  64. end
  65. end
  66.  
  67. --------------------------------------------
  68. Clear()
  69. --slowp("STARTING GAME ...",20)
  70. addlog("Starting Game")
  71. shell.run(Game,GameConfi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement