mirror of
https://github.com/LDDestroier/CC/
synced 2024-12-15 12:40:29 +00:00
Update tron
This commit is contained in:
parent
cc8bde8523
commit
ffef03b593
4
tron
4
tron
@ -55,8 +55,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 + (sx - (x * 2)) % #gridBack[1]
|
backX = 1 + math.floor(sx - (x / 2)) % #gridBack[1]
|
||||||
backY = 1 + (sy - (y * 2)) % #gridBack
|
backY = 1 + math.floor(sy - (y / 2)) % #gridBack
|
||||||
if adjX <= grid.x1 or adjX >= grid.x2 or adjY <= grid.y1 or adjY >= grid.y2 then
|
if adjX <= grid.x1 or adjX >= grid.x2 or adjY <= grid.y1 or adjY >= grid.y2 then
|
||||||
bg[1][sy] = bg[1][sy] .. grid.border
|
bg[1][sy] = bg[1][sy] .. grid.border
|
||||||
bg[2][sy] = bg[2][sy] .. grid.voidcol
|
bg[2][sy] = bg[2][sy] .. grid.voidcol
|
||||||
|
Loading…
Reference in New Issue
Block a user