Advertisement
FoxWorn3365

FNaF v1

Feb 24th, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. -- FNaF BlinkDoors v1
  2. -- Author: FoxWorn3365
  3. -- Version: 0.5 ALPHA
  4.  
  5. page = "main"
  6. animatronics = ["bonnie","chica","freddy","foxy"]
  7. screen = false
  8. images = {}
  9. images["left"] = ["chica","bonnie","null"]
  10. images["right"] = ["chica", "bonnie","null"]
  11. images["front"] = ["foxy","freddy","chica","null"]
  12. logic = {}
  13. termx, termy = term.getSize()
  14. tick = 0
  15. tick_duration = 0.5
  16.  
  17. -- Functions
  18. function title(text, color, y = 1)
  19. term.setCursorPos((termx-#text)/2, y)
  20. paintutils.drawLine(0, y, termx, y, color)
  21. term.setTextColor(colors.white)
  22. term.write(text)
  23. normalize()
  24. end
  25.  
  26. function normalize()
  27. term.setTextColor(colors.white)
  28. term.setBackgroundColor(colors.black)
  29. end
  30.  
  31. function gameLogicTick()
  32. -- function
  33. end
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement