1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-10-27 05:27:41 +00:00

Update tron

This commit is contained in:
LDDestroier
2018-11-13 15:07:47 -05:00
committed by GitHub
parent 5790d6b81f
commit a6d0574866

20
tron
View File

@@ -25,14 +25,18 @@ local player = {
local drawGrid = function(x, y)
local gridBack = {
" ",
" ########",
" ########",
" ########",
" ########",
" ########",
" ",
" ############",
" ############",
" ############",
" ############",
" ############",
" ############",
" ############",
}
local gridFore = {
"+-----",
"+-------",
"| ",
"| ",
"| ",
"| "
@@ -81,7 +85,9 @@ end
-- test background drawing
local y = 0
for x = grid.x1-10, grid.x2+10 do
drawGrid(x, 0)
y = math.sin(math.rad(x * 10)) * 30
drawGrid(x, y)
sleep(0.05)
end