Advertisement
Grexxity

Face

Jun 29th, 2023 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -- Set up the monitor on the right side
  2. local monitor = peripheral.wrap("top")
  3. monitor.setTextScale(1)
  4. monitor.clear()
  5.  
  6. -- Define the smiley face pattern
  7. local smileyFace = {
  8. " ** ",
  9. " * * ",
  10. "* *",
  11. "* \\__/ *",
  12. " * * ",
  13. " ** "
  14. }
  15.  
  16. -- Function to display the smiley face on the monitor
  17. local function displaySmileyFace()
  18. for i, line in ipairs(smileyFace) do
  19. monitor.setCursorPos(1, i)
  20. monitor.write(line)
  21. end
  22. end
  23.  
  24. -- Main program
  25. displaySmileyFace()
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement