@@ -31,7 +31,8 @@ export function onChartTick(this: GameChart, currentTime: number, container: Con
3131 const { data, game } = this ;
3232
3333 const { renderer } = game ;
34- const { widthHalf, heightHalf } = renderer . size ;
34+ const { size } = renderer ;
35+ const { widthHalf, heightHalf } = size ;
3536
3637 for ( const line of data . lines ) {
3738 const { eventLayers, parent } = line ;
@@ -115,7 +116,6 @@ export function onChartTick(this: GameChart, currentTime: number, container: Con
115116 sprite . alpha = line . alpha ;
116117 }
117118
118- const { size } = renderer ;
119119 const { widthHalfBorder, heightHalfBorder } = size ;
120120 for ( const note of data . notes ) {
121121 const {
@@ -156,7 +156,7 @@ export function onChartTick(this: GameChart, currentTime: number, container: Con
156156 }
157157
158158 const posX = widthHalf * notePosX ;
159- const posY = floorPositionDiff * size . noteSpeed * ( isAbove ? - 1 : 1 ) ;
159+ const posY = floorPositionDiff * size . height * ( isAbove ? - 1 : 1 ) ;
160160 const realXSin = posY * judgeline . sinr * - 1 ;
161161 const realYCos = posY * judgeline . cosr ;
162162
@@ -167,11 +167,11 @@ export function onChartTick(this: GameChart, currentTime: number, container: Con
167167 note . realHoldEndPosY = note . realPosY = note . realLinePosY + realYCos ;
168168
169169 if ( type === 3 ) {
170- let realHoldLength = holdLength ! * size . noteSpeed / size . noteScale ;
170+ let realHoldLength = holdLength ! * size . height / size . noteScale ;
171171 if ( time <= currentTime ) {
172172 realHoldLength = (
173173 isOfficial ? ( holdEndTime ! - currentTime ) / 1000 : ( holdFloorPosition ! - judgeline . floorPosition )
174- ) * speed * size . noteSpeed / size . noteScale ;
174+ ) * speed * size . height / size . noteScale ;
175175
176176 const [ spriteHead , spriteBody , spriteEnd ] = sprite . children ;
177177
0 commit comments