Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("left")
- printed = false
- function Run()
- term.redirect(m)
- m.setCursorPos(42,2)
- print(textutils.formatTime(os.time(), false))
- term.restore()
- return
- end
- function printStuff()
- if printed ~= true then
- term.redirect(m)
- m.setBackgroundColor(colors.black)
- m.setCursorPos(3,1)
- m.setTextScale(1)
- m.setTextColor(colors.blue)
- textutils.slowPrint("WELCOME", 3)
- term.restore()
- m.setCursorPos(2.5,3)
- -- m.setTextScale(4.4)
- m.setTextColor(colors.green)
- m.write("GO!")
- -- m.setTextScale(3.3)
- m.setTextColor(colors.yellow)
- m.setCursorPos(7,3)
- m.write("or")
- -- m.setTextScale(4)
- m.setTextColor(colors.red)
- m.setCursorPos(11.5,3)
- m.write("NO?")
- end
- printed = true
- return
- end
- function check()
- if printed ~= true then
- printStuff()
- else
- Run()
- os.sleep(.2)
- end
- end
- while true do
- event,side, xPos, yPos = os.pullEvent("monitor_touch")
- -- m.clear()
- print(event .. " => Side: " .. tostring(side) .. ", " ..
- "X: " .. tostring(xPos) .. ", " ..
- "Y: " .. tostring(yPos))
- end
Advertisement
Add Comment
Please, Sign In to add comment