mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 07:26:55 +00:00
Update tron
This commit is contained in:
parent
3ae9b7b1a2
commit
e8ce7cf1b9
8
tron
8
tron
@ -241,7 +241,8 @@ end
|
||||
|
||||
local drawImage = function(im, x, y)
|
||||
local cx, cy = term.getCursorPos()
|
||||
term.setBackgroundColor(colors.black)
|
||||
term.setBackgroundColor(tocolors[initGrid.voidcol])
|
||||
term.setTextColor(tocolors[initGrid.voidcol])
|
||||
for iy = 1, #im[1] do
|
||||
for ix = 1, #im[1][iy] do
|
||||
term.setCursorPos(x+(ix-1),y+(iy-1))
|
||||
@ -288,7 +289,7 @@ local ageTrails = function()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local tocolors
|
||||
local toblit = {
|
||||
[0] = " ",
|
||||
[colors.white] = "0",
|
||||
@ -308,6 +309,9 @@ local toblit = {
|
||||
[colors.red] = "e",
|
||||
[colors.black] = "f"
|
||||
}
|
||||
for k,v in pairs(toblit) do
|
||||
tocolors[v] = k
|
||||
end
|
||||
|
||||
local control = {
|
||||
up = keys.up,
|
||||
|
Loading…
Reference in New Issue
Block a user