WIP
This commit is contained in:
@@ -1796,6 +1796,7 @@ class PlayState extends MusicBeatSubState
|
||||
{
|
||||
if (note == null) continue;
|
||||
|
||||
// TODO: Does this properly account for offsets?
|
||||
var hitWindowStart = note.strumTime - Constants.HIT_WINDOW_MS;
|
||||
var hitWindowCenter = note.strumTime;
|
||||
var hitWindowEnd = note.strumTime + Constants.HIT_WINDOW_MS;
|
||||
@@ -1865,7 +1866,10 @@ class PlayState extends MusicBeatSubState
|
||||
}
|
||||
|
||||
// TODO: Potential penalty for dropping a hold note?
|
||||
// if (holdNote.missedNote && !holdNote.handledMiss) { holdNote.handledMiss = true; }
|
||||
if (holdNote.missedNote && !holdNote.handledMiss)
|
||||
{
|
||||
holdNote.handledMiss = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Process notes on the player's side.
|
||||
|
||||
@@ -343,7 +343,7 @@ class Strumline extends FlxSpriteGroup
|
||||
playStatic(holdNote.noteDirection);
|
||||
holdNote.missedNote = true;
|
||||
holdNote.visible = true;
|
||||
holdNote.alpha = 0.0;
|
||||
holdNote.alpha = 0.0; // Completely hide the dropped hold note.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,11 @@ class SustainTrail extends FlxSprite
|
||||
*/
|
||||
public var missedNote:Bool = false;
|
||||
|
||||
/**
|
||||
* Set to `true` after handling additional logic for missing notes.
|
||||
*/
|
||||
public var handledMiss:Bool = false;
|
||||
|
||||
// maybe BlendMode.MULTIPLY if missed somehow, drawTriangles does not support!
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user