Paragorn

Advent 16

Dec 16th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. -- Monitor Einstellen --
  2. --  "top"   = oben   |  "bottom" = unten
  3. --  "left   = links  |  "right"  = rechts
  4. --  "front" = vorne  |  "back"   = hinten
  5. -- Einfach das peripheral.wrap("HIER") ersetzen
  6. Monitor = peripheral.wrap("top")
  7. Monitor.setTextScale(4)
  8.  
  9. -- Textspeicher bitte einfach Editieren. Achtet auf das Komma am ende!
  10. TextSpeicher = {
  11.  4, -- Anzahl der Worte.
  12.  2.0, -- Wartezeit in Sekunden ( Achtung Punkt! )
  13.  -- Texte dann hier eintragen. Achtet auf das Komma am ende!
  14.  ---------HIER-----------
  15.  "Hallo Youtube!",
  16.  "Das hier ist eine",
  17.  "Coole und einfache",
  18.  "Textanzeige! =D",
  19.  --------BIS-HIER--------
  20.  }
  21.  
  22. while true do
  23.  for i = 1,TextSpeicher[1] do
  24.   Monitor.clear()
  25.   Monitor.setCursorPos(1,1)
  26.   Monitor.write(TextSpeicher[i+2])
  27.   sleep(TextSpeicher[2])
  28.  end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment