mirror of
https://github.com/LDDestroier/CC/
synced 2024-11-10 20:09:59 +00:00
Update tron
This commit is contained in:
parent
c087bad683
commit
3873ba0e2e
5
tron
5
tron
@ -184,8 +184,8 @@ local drawGrid = function(x, y)
|
|||||||
adjY = (sy + y)
|
adjY = (sy + y)
|
||||||
foreX = 1 + (sx + x) % #gridFore[1]
|
foreX = 1 + (sx + x) % #gridFore[1]
|
||||||
foreY = 1 + (sy + y) % #gridFore
|
foreY = 1 + (sy + y) % #gridFore
|
||||||
backX = 1 + math.floor(sx + (x / 3)) % #gridBack[1]
|
backX = 1 + math.floor(sx + (x / 2)) % #gridBack[1]
|
||||||
backY = 1 + math.floor(sy + (y / 3)) % #gridBack
|
backY = 1 + math.floor(sy + (y / 2)) % #gridBack
|
||||||
trailChar, trailColor, trailAge = getTrail(adjX, adjY)
|
trailChar, trailColor, trailAge = getTrail(adjX, adjY)
|
||||||
isPlayer = false
|
isPlayer = false
|
||||||
for i = 1, #player do
|
for i = 1, #player do
|
||||||
@ -385,6 +385,7 @@ scrollToPosition = function(x, y)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local gridDemo = function()
|
local gridDemo = function()
|
||||||
|
keysDown = {}
|
||||||
while true do
|
while true do
|
||||||
if keysDown[keys.left] then
|
if keysDown[keys.left] then
|
||||||
scrollX = scrollX - 1
|
scrollX = scrollX - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user