mirror of https://github.com/LDDestroier/CC/
Update wpath.lua
This commit is contained in:
parent
1b9ed0973b
commit
984754a891
12
wpath.lua
12
wpath.lua
|
@ -57,8 +57,8 @@ local render = function(shift,mon)
|
||||||
line = bow:rep(scr_x):sub(1,scr_x)
|
line = bow:rep(scr_x):sub(1,scr_x)
|
||||||
local text = ("#"):rep(scr_x)
|
local text = ("#"):rep(scr_x)
|
||||||
if wpath.doFlip then
|
if wpath.doFlip then
|
||||||
txcol = wrap(line:reverse(), -1*math.abs(scr_y/2-y)+shift-1)
|
txcol = wrap(line:reverse(), math.abs(scr_y/2-y)+shift-1)
|
||||||
bgcol = wrap(line:reverse(), -1*math.abs(scr_y/2-y)+shift)
|
bgcol = wrap(line:reverse(), math.abs(scr_y/2-y)+shift)
|
||||||
else
|
else
|
||||||
txcol = wrap(line, -1*math.abs(y-scr_y/2)+shift-1)
|
txcol = wrap(line, -1*math.abs(y-scr_y/2)+shift-1)
|
||||||
bgcol = wrap(line, -1*math.abs(y-scr_y/2)+shift)
|
bgcol = wrap(line, -1*math.abs(y-scr_y/2)+shift)
|
||||||
|
@ -70,11 +70,15 @@ end
|
||||||
local DOITNOW = function(KILLME, KILLMENOW)
|
local DOITNOW = function(KILLME, KILLMENOW)
|
||||||
local shift = 0
|
local shift = 0
|
||||||
while true do
|
while true do
|
||||||
shift = (shift + 1)
|
if wpath.doFlip then
|
||||||
|
shift = (shift - 1)
|
||||||
|
else
|
||||||
|
shift = (shift + 1)
|
||||||
|
end
|
||||||
mons = {peripheral.find("monitor")}
|
mons = {peripheral.find("monitor")}
|
||||||
setscales()
|
setscales()
|
||||||
for a = 1, #mons do
|
for a = 1, #mons do
|
||||||
render(shift,mons[a])
|
render(shift, mons[a])
|
||||||
end
|
end
|
||||||
sleep(wpath.delay)
|
sleep(wpath.delay)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue