Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("label set wwm")
- m=peripheral.wrap("top")
- m.setBackgroundColor(colors.white)
- m.setTextColor(colors.black)
- fa={
- "Wer ist dein Lieblings Moderator?",
- "ecco7777",
- "Kegler01",
- "2Zwo2",
- "erdberbär11",
- 1
- }
- c=1
- while true do
- m.setBackgroundColor(colors.white)
- m.setTextColor(colors.black)
- m.clear()
- m.setCursorPos(1,1)
- m.write(fa[c])
- m.setBackgroundColor(colors.blue)
- m.setTextColor(colors.white)
- m.setCursorPos(1,2)
- m.write(fa[c+1])
- m.setCursorPos(1,3)
- m.write(fa[c+2])
- m.setCursorPos(1,4)
- m.write(fa[c+3])
- m.setCursorPos(1,5)
- m.write(fa[c+4])
- event, button, x, y = os.pullEvent("monitor_touch")
- m.clear()
- m.setCursorPos(1,1)
- if y==fa[c+5]+1 then
- m.write("Richtig")
- else
- m.write("Falsch")
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement