Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Logo by Coti5432
- -- Make sure computer is under monitor
- -- Monitor should be 7x3
- mWidth = 0
- mHeight = 0
- mon=peripheral.wrap('top')
- mon.setTextScale(2)
- mon.clear()
- mon.setCursorPos(10,3)
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- --display name
- mon.setCursorPos(10,4)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setCursorPos(10,5)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setCursorPos(10,6)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setBackgroundColor(colors.lightBlue)
- mon.write(" ")
- mon.setBackgroundColor(colors.blue)
- mon.write(" ")
- mon.setCursorPos(10,7)
- mon.write(" ")
- mon.setCursorPos(1,1)
- mon.setBackgroundColor(colors.black)
- --test if middle of O is clicked
- function checkClickPosition()
- if mWidth == 16 and mHeight == 5 then
- shell.run("main")
- end
- end
- repeat
- event,p1,p2,p3 = os.pullEvent()
- -- this line tells the computer to wait until
- -- an event happens. We are waiting for a
- -- touchscreen event
- if event=="monitor_touch" then
- -- this checks to see if the event was a
- -- touchscreen event
- mWidth = p2 -- sets mouseWidth
- mHeight = p3 -- and mouseHeight
- checkClickPosition() -- this runs our function
- end
- -- the end of the "if loop".
- until event=="char" and p1==("x")
Add Comment
Please, Sign In to add comment