Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setBackgroundColor(colors.yellow)
- term.setTextColor(colors.blue)
- display = {}
- table.insert(display,"#0000#")
- table.insert(display,"#### ####")
- table.insert(display,"## ##")
- table.insert(display,"# ^^ ^^ #")
- table.insert(display,"# ^^ ^^ #")
- table.insert(display,"# ###### #")
- table.insert(display,"# ## ## #")
- table.insert(display,"# # # #")
- table.insert(display,"0 # 0")
- table.insert(display,"0 # 0")
- for k, v in pairs(display) do
- xpos = 14 - (string.len(v)/2)
- term.setCursorPos(xpos,k)
- term.write(v)
- term.setCursorPos(xpos,(20-k))
- term.write(v)
- end
- x, y ,z = gps.locate()
- x = x - 2
- z = math.abs((z + 166))
- if (x/68) < 35 then
- xpos = math.ceil((x/68) * 18) + 1
- else
- xpos = (x/68) * 18 + 1
- end
- if (z/68) < 35 then
- ypos = math.ceil((z/68) * 24) + 1
- else
- ypos = (z/68) * 2 + 1
- end
- term.setCursorPos(ypos,xpos)
- term.write("P")
- os.pullEvent("key")
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement