Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ###############################
- -- Surface? No! Pocket Computer
- -- version. april fool joke
- -- http://hevohevo.hatenablog.com/
- -- Falling is a great game!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- term.write("Start hevo2")
- -- maxX=26, maxY=20
- local win1 = window.create(term.current(), 2, 3, 11, 5, true)
- local win1a = window.create(term.current(), 2, 9, 5, 5, true)
- local win1b = window.create(term.current(), 8, 9, 5, 5, true)
- local win1c = window.create(term.current(), 2, 15, 5, 5, true)
- local win1d = window.create(term.current(), 8, 15, 5, 5, true)
- local win2 = window.create(term.current(), 14, 3, 11, 5, true)
- local win2a = window.create(term.current(), 14, 9, 11, 5, true)
- local win2b = window.create(term.current(), 14, 15, 11, 5, true)
- win1.setBackgroundColor(colors.cyan)
- win1.clear()
- win1.setCursorPos(1,2)
- win1.write(" Microsooft")
- win1.setCursorPos(1,3)
- win1.write(" Surface")
- win1a.setBackgroundColor(colors.blue)
- win1a.clear()
- win1a.setCursorPos(1,3)
- win1a.write(" lua")
- win1b.setBackgroundColor(colors.red)
- win1b.clear()
- win1b.setCursorPos(1,3)
- win1b.write(" Mail")
- win1c.setBackgroundColor(colors.lightBlue)
- win1c.clear()
- win1c.setCursorPos(1,3)
- win1c.write(" ?")
- win1d.setBackgroundColor(colors.magenta)
- win1d.clear()
- win1d.setCursorPos(1,3)
- win1d.write(" Chat")
- win2.setBackgroundColor(colors.purple)
- win2.clear()
- win2.setCursorPos(1,2)
- win2.write(" 1/4/2014")
- win2a.setBackgroundColor(colors.green)
- win2a.clear()
- win2a.setCursorPos(1,3)
- win2a.write(" Paint")
- win2b.setBackgroundColor(colors.orange)
- win2b.clear()
- win2b.setCursorPos(1,3)
- win2b.write(" Falling")
- term.setCursorPos(1,20)
- while true do
- local event, b, x, y = os.pullEvent("mouse_click")
- if b==1 then
- if (x >= 14 and x <= 25) and (y >= 15 and y <= 20) then
- shell.run("falling")
- break
- elseif (x >= 1 and x <= 5) and y==1 then
- os.reboot()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement