mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-14 04:00:29 +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
|
||||
}
|
||||
|
||||
local gridFore = {
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
}
|
||||
local gridBack = {
|
||||
"+-------",
|
||||
"| ",
|
||||
"| ",
|
||||
"| ",
|
||||
"| "
|
||||
}
|
||||
for y = 1, gridFore do
|
||||
gridFore[y] = gridFore[y]:gsub("#","\127")
|
||||
|
||||
--draws grid and background at scroll 'x' and 'y'
|
||||
local drawGrid = function(x, y)
|
||||
x, y = math.floor(x + 0.5), math.floor(y + 0.5)
|
||||
local gridBack = {
|
||||
" ",
|
||||
" ",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
" ############",
|
||||
}
|
||||
local gridFore = {
|
||||
"+-------",
|
||||
"| ",
|
||||
"| ",
|
||||
"| ",
|
||||
"| "
|
||||
}
|
||||
local bg = {{},{},{}}
|
||||
local foreX, foreY
|
||||
local backX, backY
|
||||
|
Loading…
Reference in New Issue
Block a user