Flip the values so notes are incoming.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
8d72f24074
commit
ef0daa4652
@ -46,8 +46,8 @@ public class Canvas extends JPanel{
|
|||||||
int noteCounter = 0;
|
int noteCounter = 0;
|
||||||
while (lane.noteExists(noteCounter)) {
|
while (lane.noteExists(noteCounter)) {
|
||||||
Note n = lane.getNote(noteCounter);
|
Note n = lane.getNote(noteCounter);
|
||||||
if (LLSIG.game.musicPlayer.getPlayPosition()-n.getStartFrame()<LLSIG.game.NOTE_SPEED) {
|
if (n.getStartFrame()-LLSIG.game.musicPlayer.getPlayPosition()<LLSIG.game.NOTE_SPEED) {
|
||||||
g.fillOval((int)(MIDDLE_X-Math.cos(Math.toRadians(22.5*i))*((1-(((double)LLSIG.game.musicPlayer.getPlayPosition()-n.getStartFrame())/LLSIG.game.NOTE_SPEED))*NOTE_DISTANCE)-NOTE_SIZE/2),(int)(MIDDLE_Y+Math.sin(Math.toRadians(22.5*i))*((1-(((double)LLSIG.game.musicPlayer.getPlayPosition()-n.getStartFrame())/LLSIG.game.NOTE_SPEED))*NOTE_DISTANCE)-NOTE_SIZE/2),NOTE_SIZE,NOTE_SIZE);
|
g.fillOval((int)(MIDDLE_X-Math.cos(Math.toRadians(22.5*i))*((1-(((double)n.getStartFrame()-LLSIG.game.musicPlayer.getPlayPosition())/LLSIG.game.NOTE_SPEED))*NOTE_DISTANCE)-NOTE_SIZE/2),(int)(MIDDLE_Y+Math.sin(Math.toRadians(22.5*i))*((1-(((double)n.getStartFrame()-LLSIG.game.musicPlayer.getPlayPosition())/LLSIG.game.NOTE_SPEED))*NOTE_DISTANCE)-NOTE_SIZE/2),NOTE_SIZE,NOTE_SIZE);
|
||||||
}
|
}
|
||||||
noteCounter++;
|
noteCounter++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user