kamilosxd678

Ilddor HTGR holo

Feb 14th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1. local component = require("component")
  2.  
  3. local holo = component.hologram
  4.  
  5. local bolt =
  6. {
  7.    {0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1},
  8.    {0, 0, 0, 0, 1, 2, 2, 2, 2, 2, 1},
  9.    {0, 0, 0, 1, 1, 2, 2, 2, 2, 1, 1},
  10.    {0, 0, 1, 1, 2, 2, 2, 2, 1, 1, 0},
  11.    {0, 0, 1, 2, 2, 2, 2, 2, 1, 0, 0},
  12.    {0, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1},
  13.    {0, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1},
  14.    {1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1},
  15.    {1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1},
  16.    {1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 0},
  17.    {0, 0, 0, 1, 2, 2, 2, 1, 1, 0, 0},
  18.    {0, 0, 1, 1, 2, 2, 1, 1, 0, 0, 0},
  19.    {0, 0, 1, 2, 2, 1, 1, 0, 0, 0, 0},
  20.    {0, 0, 1, 2, 1, 1, 0, 0, 0, 0, 0},
  21.    {0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0}
  22. }
  23.  
  24. local moustache =
  25. {
  26.    {3, 0, 0, 3, 3, 0, 0, 3},
  27.    {3, 3, 3, 3, 3, 3, 3, 3},
  28.    {0, 3, 3, 0, 0, 3, 3, 0}
  29. }
  30.  
  31. function initHolo()
  32.    holo.clear()
  33.    
  34.    holo.setPaletteColor(1, 0x000000)
  35.    holo.setPaletteColor(2, 0xFFFF00)
  36.    holo.setPaletteColor(3, 0xFFFFFF)
  37. end
  38.  
  39. function printBolt(z)
  40.    for x=1,11 do
  41.       for y=1,15 do
  42.          if(not (bolt[y][x] == 0)) then
  43.             holo.set(16 + x, 8 + 15 - y, z, gear[y][x])
  44.          end
  45.       end
  46.    end
  47. end
  48.  
  49. function printMoustache(z)
  50.    for x=1,8 do
  51.       for y=1,3 do
  52.          if(not (moustache[y][x] == 0)) then
  53.             holo.set(20 + x, 14 + 3 - y, z, moustache[y][x])
  54.          end
  55.       end
  56.    end
  57. end
  58.  
  59. initHolo()
  60.  
  61. printGear(23)
  62. printGear(24)
  63. printMoustache(25)
Advertisement
Add Comment
Please, Sign In to add comment