mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-08 08:20:27 +00:00
Update tron
This commit is contained in:
parent
e8ce7cf1b9
commit
105544a6e3
47
tron
47
tron
@ -239,6 +239,30 @@ for k,v in pairs(images) do
|
||||
end
|
||||
end
|
||||
|
||||
local tocolors
|
||||
local toblit = {
|
||||
[0] = " ",
|
||||
[colors.white] = "0",
|
||||
[colors.orange] = "1",
|
||||
[colors.magenta] = "2",
|
||||
[colors.lightBlue] = "3",
|
||||
[colors.yellow] = "4",
|
||||
[colors.lime] = "5",
|
||||
[colors.pink] = "6",
|
||||
[colors.gray] = "7",
|
||||
[colors.lightGray] = "8",
|
||||
[colors.cyan] = "9",
|
||||
[colors.purple] = "a",
|
||||
[colors.blue] = "b",
|
||||
[colors.brown] = "c",
|
||||
[colors.green] = "d",
|
||||
[colors.red] = "e",
|
||||
[colors.black] = "f"
|
||||
}
|
||||
for k,v in pairs(toblit) do
|
||||
tocolors[v] = k
|
||||
end
|
||||
|
||||
local drawImage = function(im, x, y)
|
||||
local cx, cy = term.getCursorPos()
|
||||
term.setBackgroundColor(tocolors[initGrid.voidcol])
|
||||
@ -289,29 +313,6 @@ local ageTrails = function()
|
||||
end
|
||||
end
|
||||
end
|
||||
local tocolors
|
||||
local toblit = {
|
||||
[0] = " ",
|
||||
[colors.white] = "0",
|
||||
[colors.orange] = "1",
|
||||
[colors.magenta] = "2",
|
||||
[colors.lightBlue] = "3",
|
||||
[colors.yellow] = "4",
|
||||
[colors.lime] = "5",
|
||||
[colors.pink] = "6",
|
||||
[colors.gray] = "7",
|
||||
[colors.lightGray] = "8",
|
||||
[colors.cyan] = "9",
|
||||
[colors.purple] = "a",
|
||||
[colors.blue] = "b",
|
||||
[colors.brown] = "c",
|
||||
[colors.green] = "d",
|
||||
[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