fuck you codename engine im watching steven universe with kay now

This commit is contained in:
Yoshman29
2022-10-27 02:33:00 +02:00
parent 6a0e808d6c
commit 306d84cd36
2 changed files with 13 additions and 11 deletions
-11
View File
@@ -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) {
+13
View File
@@ -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;