Advertisement
DOGGYWOOF

Untitled

Oct 12th, 2024 (edited)
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. -- Boot Animation for CC Tweaked
  2.  
  3. -- Function to clear the screen and set up the terminal
  4. local function setupTerminal()
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. end
  8.  
  9. -- Function to create the boot animation
  10. local function bootAnimation()
  11. local frames = {
  12. "Loading...",
  13. "Initializing system...",
  14. "Starting services...",
  15. "Welcome to Doggy OS!"
  16. }
  17.  
  18. for i = 1, #frames do
  19. setupTerminal()
  20. term.setTextColor(colors.green)
  21. term.setCursorPos(1, 1)
  22. term.write(frames[i])
  23. sleep(1) -- Pause for 1 second before showing the next frame
  24. end
  25. end
  26.  
  27. -- Start the boot animation
  28. bootAnimation()
  29.  
  30. -- Proceed to the main interface
  31. os.run({}, "/disk/os/gui") -- Change this to your main GUI file
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement