Guest User

Untitled

a guest
Feb 26th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. version = "0.0.1"
  2. rock = {
  3. " ------------ ",
  4. " | | ",
  5. " | | ",
  6. " | | ",
  7. " | | ",
  8. " ------------ ",
  9. }
  10.  
  11. sis = {
  12. " \ / ",
  13. " \/ ",
  14. " [] ",
  15. " 0 0 ",
  16. }
  17.  
  18. paper = {
  19. " ------------ ",
  20. " | | ",
  21. " | | ",
  22. " | | ",
  23. " | | ",
  24. " ------------ ",
  25. }
  26.  
  27. function printDes(image,postionX,positonY)
  28. for y=1, #image do
  29. term.setCursorPos(postionX,positionY + y - 1)
  30. term.write(image[y]) -- missed a ) here
  31. end
  32. end
  33.  
  34.  
  35. local w,h = term.getSize()
  36.  
  37. function printC(str, y)
  38. term.setCursorPos(w/2 - #str/2, y)
  39. term.write(str)
  40. end
  41.  
  42. function Header()
  43. printC("Rock Paper Sissiors ++ v"..version,1) -- error misses a number for the Y hight
  44. printC(string.rep("[]", w), 2) -- missed a " here
  45. end
  46.  
  47. Header()
Advertisement
Add Comment
Please, Sign In to add comment