theres weird behaviour with rendering?
This commit is contained in:
@@ -83,11 +83,10 @@ local function newdesign()
|
||||
for x=1+camx,dimensions["x"]+camx,1 do
|
||||
for z=1+camy,dimensions["z"]+camy,1 do
|
||||
local currentbuf = buf[posasstring(x, currentfloor, z)]
|
||||
term.setCursorPos(x, z)
|
||||
if currentbuf then
|
||||
term.setCursorPos(x, z)
|
||||
term.blit(" ", colors.toBlit(colors.white), colors.toBlit(colors.white))
|
||||
else
|
||||
term.setCursorPos(x, z)
|
||||
term.blit("\127", colors.toBlit(colors.gray), colors.toBlit(colors.black))
|
||||
end
|
||||
end
|
||||
@@ -187,10 +186,10 @@ local function newdesign()
|
||||
if keys.getName(event[2]) == "s" and camy > 0 then -- pan down
|
||||
camy = camy - 1
|
||||
end
|
||||
if keys.getName(event[2]) == "d" and camx < dimensions["x"] then -- pan left
|
||||
if keys.getName(event[2]) == "a" and camx < dimensions["x"] then -- pan left
|
||||
camx = camx + 1
|
||||
end
|
||||
if keys.getName(event[2]) == "a" and camx > 0 then -- pan right
|
||||
if keys.getName(event[2]) == "d" and camx > 0 then -- pan right
|
||||
camx = camx - 1
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user