Advertisement
Guest User

floor3d

a guest
Jul 2nd, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local component = require("component")
  2. local gpu = component.gpu
  3. local w, h = gpu.getResolution()
  4.  
  5. local floor = {}
  6.  
  7. function floor.create(x)
  8. x = x or 1
  9. for i = 1, x do
  10. gpu.setForeground(0x999999)
  11. gpu.fill(1, 1, w, h/2, "+ ")
  12. end
  13. end
  14. function floor.create(x)
  15. x = x or 1
  16. for i = 1, x do
  17. gpu.fill(1, 1, w, h, " ")
  18. gpu.setForeground(0x999999)
  19. gpu.fill(1, 1, w, h/2, " +")
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement