Skip to content

Commit

Permalink
Merge pull request #159 from HyeokjinKang/editor-note-shadow
Browse files Browse the repository at this point in the history
fix: 잔상 타이밍 조정
  • Loading branch information
HyeokjinKang authored Jun 5, 2024
2 parents 980e1d4 + d693b84 commit 90d7e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,8 +1287,8 @@ const cntRender = () => {
const p = (1 - (renderNotes[i].beat - beats) / (5 / speed)) * 100;
const t = ((beats - renderNotes[i].beat) / renderNotes[i].duration) * 100;
const f = (1 - (renderNotes[i].beat + renderNotes[i].duration - beats) / (5 / speed)) * 100;
if (renderNotes[i].value != 2 && p < 130) validNote = i;
else if (renderNotes[i].value == 2 && f < 130) validNote = i;
if (renderNotes[i].value != 2 && p < 100) validNote = i;
else if (renderNotes[i].value == 2 && f < 100) validNote = i;
if (i == validNote) drawNote(p, renderNotes[i].x, renderNotes[i].y, selectedCheck(0, i), renderNotes[i].value, renderNotes[i].direction, t, f);
else if (i + 3 >= validNote) {
drawShadow(renderNotes[i].x, renderNotes[i].y, renderNotes[i].value, renderNotes[i].direction, 0.4 - 0.1 * (validNote - i));
Expand Down

0 comments on commit 90d7e36

Please sign in to comment.