jump holds

This commit is contained in:
Cameron Taylor 2021-01-17 19:06:36 -05:00
parent 4192fe2beb
commit 2d940b73b8
2 changed files with 36 additions and 30 deletions

View File

@ -12,12 +12,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Other charting editor workflow improvements - Other charting editor workflow improvements
- More hair physics - More hair physics
- Heads appear at top of chart editor to help show which side ur charting for - Heads appear at top of chart editor to help show which side ur charting for
### Changed
- Tweaked code relating to inputs, hopefully making notes that are close together more fair to hit
### Removed ### Removed
- Removed APE - Removed APE
### Fixed ### Fixed
- Old Verison popup screen weirdness ([Thanks to gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/155)) - Old Verison popup screen weirdness ([Thanks to gedehari for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/155))
- Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132)) - Song no longer loops when finishing the song. ([Thanks Injourn for the Pull Request!](https://github.com/ninjamuffin99/Funkin/pull/132))
- Screen wipe being cut off in the limo/mom stage. - Screen wipe being cut off in the limo/mom stage. Should fill the whole screen now.
## [0.2.5] - 2020-12-27 ## [0.2.5] - 2020-12-27
### Added ### Added

View File

@ -1262,13 +1262,16 @@ class PlayState extends MusicBeatState
if (daNote.canBeHit && daNote.mustPress && !daNote.tooLate) if (daNote.canBeHit && daNote.mustPress && !daNote.tooLate)
{ {
possibleNotes.push(daNote); possibleNotes.push(daNote);
trace(possibleNotes[0].strumTime);
possibleNotes.sort((a, b) -> Std.int(a.strumTime - b.strumTime));
trace(possibleNotes[0].strumTime);
} }
}); });
if (possibleNotes.length > 0) if (possibleNotes.length > 0)
{ {
for (daNote in possibleNotes) var daNote = possibleNotes[0];
{
if (perfectMode) if (perfectMode)
noteCheck(true, daNote); noteCheck(true, daNote);
@ -1295,7 +1298,6 @@ class PlayState extends MusicBeatState
daNote.destroy(); daNote.destroy();
} }
} }
}
else else
{ {
badNoteCheck(); badNoteCheck();
@ -1312,16 +1314,16 @@ class PlayState extends MusicBeatState
{ {
// NOTES YOU ARE HOLDING // NOTES YOU ARE HOLDING
case 2: case 2:
if (up && daNote.prevNote.wasGoodHit) if (up)
goodNoteHit(daNote); goodNoteHit(daNote);
case 3: case 3:
if (right && daNote.prevNote.wasGoodHit) if (right)
goodNoteHit(daNote); goodNoteHit(daNote);
case 1: case 1:
if (down && daNote.prevNote.wasGoodHit) if (down)
goodNoteHit(daNote); goodNoteHit(daNote);
case 0: case 0:
if (left && daNote.prevNote.wasGoodHit) if (left)
goodNoteHit(daNote); goodNoteHit(daNote);
} }
} }
@ -1460,8 +1462,10 @@ class PlayState extends MusicBeatState
if (keyP) if (keyP)
goodNoteHit(note); goodNoteHit(note);
else else
{
badNoteCheck(); badNoteCheck();
} }
}
function goodNoteHit(note:Note):Void function goodNoteHit(note:Note):Void
{ {