Skip to content

Commit

Permalink
修正倒打时轨道边线没对齐
Browse files Browse the repository at this point in the history
略微加长轨道边线
  • Loading branch information
MrZ626 committed Jan 3, 2022
1 parent 0580db7 commit ed67326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parts/track.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,15 +286,15 @@ function Track:draw(map)
gc_rectangle('fill',-trackW,0,2*trackW,4*ky)

--Draw sides
local unitY=620*ky
local unitY=626*ky
for i=0,99 do
i=i*.01
gc_setColor(s.r,s.g,s.b,s.alpha*(1-i))
gc_rectangle('fill',-trackW,4-i*unitY,-4,-unitY*.01)
gc_rectangle('fill',trackW,4-i*unitY,4,-unitY*.01)
gc_rectangle('fill',-trackW,4*ky-unitY*i,-4,-unitY*.01)
gc_rectangle('fill',trackW,4*ky-unitY*i,4,-unitY*.01)
if self.pressed then
gc_setColor(s.r,s.g,s.b,s.alpha*(1-i)/6)
gc_rectangle('fill',-trackW,-i*unitY,2*trackW,-unitY*.01)
gc_rectangle('fill',-trackW,-unitY*i,2*trackW,-unitY*.01)
end
end

Expand Down

0 comments on commit ed67326

Please sign in to comment.