mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
WIP
This commit is contained in:
parent
5dbed6d4dd
commit
313fd55e98
3 changed files with 11 additions and 2 deletions
|
@ -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!
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue