Oops
This commit is contained in:
parent
8e9dd958eb
commit
52f2a55cc1
|
@ -87,8 +87,8 @@ function()
|
||||||
for x = 1, 164 do
|
for x = 1, 164 do
|
||||||
local i = (y - 1) * 164 + (x - 1)
|
local i = (y - 1) * 164 + (x - 1)
|
||||||
tx[x] = chunk_state[i * 2 + 1]
|
tx[x] = chunk_state[i * 2 + 1]
|
||||||
bg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF))
|
fg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF))
|
||||||
fg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF))
|
bg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF))
|
||||||
end
|
end
|
||||||
mon.blit(string.char(table.unpack(tx)), table.concat(bg), table.concat(fg))
|
mon.blit(string.char(table.unpack(tx)), table.concat(bg), table.concat(fg))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue