fuck you codename engine im watching steven universe with kay now
This commit is contained in:
@@ -170,17 +170,6 @@ class Note extends FlxSprite
|
||||
override function update(elapsed:Float)
|
||||
{
|
||||
super.update(elapsed);
|
||||
|
||||
if (mustPress)
|
||||
{
|
||||
canBeHit = (strumTime > Conductor.songPosition - (Conductor.safeZoneOffset * latePressWindow)
|
||||
&& strumTime < Conductor.songPosition + (Conductor.safeZoneOffset * earlyPressWindow));
|
||||
|
||||
if (strumTime < Conductor.songPosition - Conductor.safeZoneOffset && !wasGoodHit)
|
||||
tooLate = true;
|
||||
}
|
||||
else
|
||||
canBeHit = false;
|
||||
}
|
||||
|
||||
public function updateClipRect(strum:Strum) {
|
||||
|
||||
@@ -939,14 +939,27 @@ class PlayState extends MusicBeatState
|
||||
|
||||
if (generatedMusic)
|
||||
{
|
||||
var toDelete:Array<Note> = [];
|
||||
notes.forEachAlive(function(daNote:Note)
|
||||
{
|
||||
if (daNote.mustPress)
|
||||
{
|
||||
daNote.canBeHit = (daNote.strumTime > Conductor.songPosition - (Conductor.safeZoneOffset * daNote.latePressWindow)
|
||||
&& daNote.strumTime < Conductor.songPosition + (Conductor.safeZoneOffset * daNote.earlyPressWindow));
|
||||
|
||||
if (daNote.strumTime < Conductor.songPosition - Conductor.safeZoneOffset && !daNote.wasGoodHit)
|
||||
daNote.tooLate = true;
|
||||
}
|
||||
else
|
||||
canBeHit = false;
|
||||
|
||||
if (!daNote.mustPress && !daNote.wasGoodHit && daNote.strumTime <= Conductor.songPosition) goodNoteHit(daNote);
|
||||
// TODO: FIXED STEP CROCHET PER NOTES FOR BPM CHANGES
|
||||
if (daNote.wasGoodHit && daNote.isSustainNote && daNote.strumTime + (Conductor.stepCrochet) < Conductor.songPosition) {
|
||||
deleteNote(daNote);
|
||||
return;
|
||||
}
|
||||
|
||||
if (daNote.tooLate) {
|
||||
noteMiss(daNote);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user