mirror of
https://github.com/LDDestroier/CC/
synced 2025-05-24 08:14:05 +00:00
Update tron
This commit is contained in:
parent
ffef03b593
commit
e16c37678c
40
tron
40
tron
@ -21,27 +21,31 @@ local player = {
|
|||||||
color = colors.blue
|
color = colors.blue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local gridFore = {
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
" ############",
|
||||||
|
}
|
||||||
|
local gridBack = {
|
||||||
|
"+-------",
|
||||||
|
"| ",
|
||||||
|
"| ",
|
||||||
|
"| ",
|
||||||
|
"| "
|
||||||
|
}
|
||||||
|
for y = 1, gridFore do
|
||||||
|
gridFore[y] = gridFore[y]:gsub("#","\127")
|
||||||
|
|
||||||
--draws grid and background at scroll 'x' and 'y'
|
--draws grid and background at scroll 'x' and 'y'
|
||||||
local drawGrid = function(x, y)
|
local drawGrid = function(x, y)
|
||||||
x, y = math.floor(x + 0.5), math.floor(y + 0.5)
|
x, y = math.floor(x + 0.5), math.floor(y + 0.5)
|
||||||
local gridBack = {
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
" ############",
|
|
||||||
}
|
|
||||||
local gridFore = {
|
|
||||||
"+-------",
|
|
||||||
"| ",
|
|
||||||
"| ",
|
|
||||||
"| ",
|
|
||||||
"| "
|
|
||||||
}
|
|
||||||
local bg = {{},{},{}}
|
local bg = {{},{},{}}
|
||||||
local foreX, foreY
|
local foreX, foreY
|
||||||
local backX, backY
|
local backX, backY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user