Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- com = require("component")
- geo = require("component").geolyzer
- holo = require("component").hologram
- term = require("term")
- event = require("event")
- term.clear()
- print("Введите ширину")
- local xdata = io.read()
- print("Введите длину")
- local zdata = io.read()
- print("Нажмите на экран чтобы начать сканирование")
- event.pull("touch")
- print"Сканирую..."
- for z = 1,zdata do
- for x = 1,xdata do
- data = geo.scan(x,z)
- for g = 33,64 do
- local y = data[g]
- if y > 0 then
- holo.set(x,g-32,z,2)
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment