mirror of
https://github.com/LDDestroier/CC/
synced 2025-10-27 05:27:41 +00:00
Update tron
This commit is contained in:
20
tron
20
tron
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user