mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-18 21:22:53 +00:00
Update tron
This commit is contained in:
parent
ffef03b593
commit
e16c37678c
14
tron
14
tron
@ -21,10 +21,8 @@ local player = {
|
||||
color = colors.blue
|
||||
}
|
||||
|
||||
--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 = {
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ############",
|
||||
@ -35,13 +33,19 @@ local drawGrid = function(x, y)
|
||||
" ############",
|
||||
" ############",
|
||||
}
|
||||
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 bg = {{},{},{}}
|
||||
local foreX, foreY
|
||||
local backX, backY
|
||||
|
Loading…
Reference in New Issue
Block a user