Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Prerequisites
- for i,v in pairs(peripheral.getNames()) do -- Find modem
- if peripheral.getType(v) == "modem" then
- music = peripheral.wrap(v)
- end
- end
- local map
- local direction
- -- Map Selection Menu
- function startMenu()
- term.setBackgroundColor(colors.white)
- term.clear()
- local w,h = term.getSize()
- term.setCursorPos(math.floor(w / 2 - #"Select Map File" / 2 + .5), 1)
- term.setTextColor(colors.black)
- term.write("Select Map File")
- end
- -- Create two windows for individual management
- local mapDisplay = window.create(term.native(),1,1,29,19)
- local guiDisplay = window.create(term.native(),30,1,51,19)
- -- Update map display
- function redrawMap()
- mapDisplay.setBackgroundColor(colors.black)
- mapDisplay.clear()
- -- Draw Turtle Icon
- mapDisplay.setCursorPos(15,10)
- mapDisplay.setBackgroundColor(colors.yellow)
- mapDisplay.setTextColor(colors.black)
- mapDisplay.write("@")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement