Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Server = ""
- function DrawFrame()
- local Request = http.get(Server .. "/NextFrame") --TODO: Should all the frames be played or just some?
- local image = paintutils.parseImage(Request.readAll())
- paintutils.drawImage(image, term.getCursorPos())
- Request = http.get(Server .. "/GetAudio") --TODO: Should all the frames be played or just some?
- speaker.playAudio(Request.readAll())
- end
- -- Main --
- local monitor = peripheral.find("monitor")
- local Speaker = peripheral.find("speaker")
- term.redirect(monitor)
- local x,y = term.getSize()
- while(true) do
- DrawFrame()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement