JustDoesGames

Shorthand Engine

Dec 9th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. -- Project : Shorthand Program/Game Engine --
  2. -- Creator : Just Does Games --
  3. -- Date : 12/8/18 --
  4. -- Version : 1.0 --
  5.  
  6. -- NEW COMMANDS --
  7. ------------------
  8. -- cls() > shell.run("clear")
  9. -- s(a) > sleep(a)
  10. -- tc() > term.clear()
  11. -- p("example") > print("example")
  12. -- w("example") > write("example")
  13. -- sp("example") > texturils.slowPrint("example")
  14. -- sw("example") > textutils.slowWrite("example")
  15. -- c(a) > term.setTextColor(colours.a)
  16. -- b(a) > term.setBackgroundColor(colours.a)
  17. -- cp(a,b) > term.setCursorPos(a,b)
  18. -- use(a) > shell.run(a)
  19.  
  20. if use == nil or s == nil or cls == nil or tc == nil or p == nil or w == nil or sp == nil or sw == nil or c == nil or b == nil or cp == nil then
  21. using = function(a) shell.run(a) end use = function(a) shell.run(a) end s = function(a) sleep(a) end cls = function() shell.run("clear") end local console = function(a) print("CONSOLE : "..a) sleep(.001) end p = function(a) print(a) end w = function(a) write(a) end
  22. sw = function(a) textutils.slowWrite(a) end sp = function(a) textutils.slowPrint(a) end
  23. c = function(a) if term.isColor() == true then if a == 0 then term.setTextColor(colours.white) elseif a == 1 then term.setTextColor(colours.orange) elseif a == 2 then term.setTextColor(colours.magenta) elseif a == 3 then term.setTextColor(colours.lightBlue) elseif a == 4 then term.setTextColor(colours.yellow) elseif a == 5 then term.setTextColor(colours.lime) elseif a == 6 then term.setTextColor(colours.pink) elseif a == 7 then term.setTextColor(colours.grey) elseif a == 8 then term.setTextColor(colours.lightGrey) elseif a == 9 then term.setTextColor(colours.cyan) elseif a == "a" then term.setTextColor(colours.purple) elseif a == "b" then term.setTextColor(colours.blue) elseif a == "c" then term.setTextColor(colours.brown) elseif a == "d" then term.setTextColor(colours.green) elseif a == "e" then term.setTextColor(colours.red) elseif a == "f" then term.setTextColor(colours.black) elseif a == "red" then c("e") elseif a == "orange" then c(1) elseif a == "yellow" then c(4) elseif a == "green" then c("d") elseif a == "blue" then c("b") elseif a == "purple" then c("a") elseif a == "black" then c("f") elseif a == "white" then c(0) end end end tc = function() term.clear() end
  24. b = function(a) if term.isColor() == true then if a == 0 then term.setBackgroundColor(colours.white) elseif a == 1 then term.setBackgroundColor(colours.orange) elseif a == 2 then term.setBackgroundColor(colours.magenta) elseif a == 3 then term.setBackgroundColor(colours.lightBlue) elseif a == 4 then term.setBackgroundColor(colours.yellow) elseif a == 5 then term.setBackgroundColor(colours.lime) elseif a == 6 then term.setBackgroundColor(colours.pink) elseif a == 7 then term.setBackgroundColor(colours.grey) elseif a == 8 then term.setBackgroundColor(colours.lightGrey) elseif a == 9 then term.setBackgroundColor(colours.cyan) elseif a == "a" then term.setBackgroundColor(colours.purple) elseif a == "b" then term.setBackgroundColor(colours.blue) elseif a == "c" then term.setBackgroundColor(colours.brown) elseif a == "d" then term.setBackgroundColor(colours.green) elseif a == "e" then term.setBackgroundColor(colours.red) elseif a == "f" then term.setBackgroundColor(colours.black) elseif a == "red" then b("e") elseif a == "orange" then b(1) elseif a == "yellow" then b(4) elseif a == "green" then b("d") elseif a == "blue" then b("b") elseif a == "purple" then b("a") elseif a == "black" then b("f") elseif a == "white" then b(0) end end end cp = function(a,b) term.setCursorPos(a,b) end
  25. --__________________________________________________
  26. --| \\// \\// |
  27. --| || || |
  28. --| \/ Remove this line for no splash effect \/ |
  29. cls() console("Loading Shorthand...") console("cp loaded...") console("use loaded...") console("p loaded...") console("w loaded...") console("sw loaded...") console("sp loaded...") console("c loaded...") console("tc loaded...") console("b loaded...") console("cp loaded...") console("Loaded 10/10.") sleep(.3) cls() p("Shorthand Loaded!") sleep(.1)
  30. --| |
  31. ----------------------------------------------------
  32. end -- <<< DO NOT DELETE THIS 'End'. THIS WILL BREAK THE SYSTEM! ONLY THE LINE ABOVE FOR NO SPLASH /\
  33. -- ||
Advertisement
Add Comment
Please, Sign In to add comment