Skip to content

Commit

Permalink
优化轨道音符dx计算
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jan 3, 2022
1 parent ed67326 commit 370d9f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parts/track.lua
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ function Track:draw(map)
local trackW=50*s.kx*SETTING.trackW
local ky=s.ky

local noteDX,noteDY=SETTING.scaleX,s.ky*s.dropSpeed/50

--Available indicator for testing
-- gc_setColor(1,1,1)
-- gc.setLineWidth(2)
Expand Down Expand Up @@ -318,8 +320,8 @@ function Track:draw(map)
end
end

local dx=listLerp(note.xOffset,1-timeRemain/2.6)
local dy=listLerp(note.yOffset,1-timeRemain/2.6)
local dx=listLerp(note.xOffset,1-timeRemain/2.6)*noteDX
local dy=listLerp(note.yOffset,1-timeRemain/2.6)*noteDY

gc_translate(dx,dy)
if note.type=='tap'then
Expand Down

0 comments on commit 370d9f8

Please sign in to comment.