Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("facilityMap")
- mon = peripheral.wrap("top")
- function introVega()
- mon.setBackgroundColor(colors.white)
- mon.clear()
- mon.setCursorPos(6, 5)
- mon.setTextScale(4)
- mon.setTextColor(colors.red)
- mon.write("Hello!")
- sleep(2)
- mon.clear()
- mon.setCursorPos(4, 5)
- mon.write("I am Vega.")
- sleep(3)
- mon.clear()
- mon.setTextScale(2)
- mon.setCursorPos(3, 4)
- mon.write("I am the artificial")
- sleep(1)
- mon.setCursorPos(3, 5)
- mon.write("intelligence assigned")
- sleep(2)
- mon.setCursorPos(3, 6)
- mon.write("to this facility")
- sleep(3)
- mon.clear()
- end
- while true do
- mon.setBackgroundColor(colors.white)
- mon.clear()
- mon.setTextScale(5)
- mon.setCursorPos(5, 1)
- mon.setTextColor(colors.green)
- mon.write("Vega")
- sleep(2)
- mon.setTextScale(2)
- mon.setCursorPos(1, 7)
- mon.write("Who is Vega")
- mon.setCursorPos(17, 7)
- mon.write("Facility Map")
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 1 and x < 12 and y == 7 then
- introVega()
- else if x > 17 and x < 29 and y == 7 then
- facilityMap.drawMap()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment