Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local gpu = component.gpu
- local w, h = gpu.getResolution()
- local floor = {}
- function floor.create(x)
- x = x or 1
- for i = 1, x do
- gpu.setForeground(0x999999)
- gpu.fill(1, 1, w, h/2, "+ ")
- end
- end
- function floor.create(x)
- x = x or 1
- for i = 1, x do
- gpu.fill(1, 1, w, h, " ")
- gpu.setForeground(0x999999)
- gpu.fill(1, 1, w, h/2, " +")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement