mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-11 14:48:02 +00:00
double notes???
This commit is contained in:
parent
de0ccd03f3
commit
cb22536109
|
@ -1250,6 +1250,8 @@ class PlayState extends MusicBeatState
|
|||
var downR = controls.DOWN_R;
|
||||
var leftR = controls.LEFT_R;
|
||||
|
||||
var controlArray:Array<Bool> = [leftP, downP, upP, rightP];
|
||||
|
||||
// FlxG.watch.addQuick('asdfa', upP);
|
||||
if ((upP || rightP || downP || leftP) && !boyfriend.stunned && generatedMusic)
|
||||
{
|
||||
|
@ -1257,14 +1259,17 @@ class PlayState extends MusicBeatState
|
|||
|
||||
var possibleNotes:Array<Note> = [];
|
||||
|
||||
var ignoreList:Array<Int> = [];
|
||||
|
||||
notes.forEachAlive(function(daNote:Note)
|
||||
{
|
||||
if (daNote.canBeHit && daNote.mustPress && !daNote.tooLate)
|
||||
{
|
||||
// the sorting probably doesn't need to be in here? who cares lol
|
||||
possibleNotes.push(daNote);
|
||||
trace(possibleNotes[0].strumTime);
|
||||
possibleNotes.sort((a, b) -> Std.int(a.strumTime - b.strumTime));
|
||||
trace(possibleNotes[0].strumTime);
|
||||
|
||||
ignoreList.push(daNote.noteData);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1275,6 +1280,28 @@ class PlayState extends MusicBeatState
|
|||
if (perfectMode)
|
||||
noteCheck(true, daNote);
|
||||
|
||||
for (coolNote in possibleNotes)
|
||||
{
|
||||
if (controlArray[coolNote.noteData])
|
||||
goodNoteHit(coolNote);
|
||||
else
|
||||
{
|
||||
var inIgnoreList:Bool = false;
|
||||
for (shit in 0...ignoreList.length)
|
||||
{
|
||||
if (controlArray[ignoreList[shit]])
|
||||
inIgnoreList = true;
|
||||
}
|
||||
if (!inIgnoreList)
|
||||
badNoteCheck();
|
||||
}
|
||||
}
|
||||
/*
|
||||
if (controlArray[daNote.noteData])
|
||||
goodNoteHit(daNote);
|
||||
*/
|
||||
// trace(daNote.noteData);
|
||||
/*
|
||||
switch (daNote.noteData)
|
||||
{
|
||||
case 2: // NOTES YOU JUST PRESSED
|
||||
|
@ -1290,7 +1317,7 @@ class PlayState extends MusicBeatState
|
|||
if (upP || rightP || downP || leftP)
|
||||
noteCheck(leftP, daNote);
|
||||
}
|
||||
|
||||
*/
|
||||
if (daNote.wasGoodHit)
|
||||
{
|
||||
daNote.kill();
|
||||
|
@ -1423,30 +1450,6 @@ class PlayState extends MusicBeatState
|
|||
var downP = controls.DOWN_P;
|
||||
var leftP = controls.LEFT_P;
|
||||
|
||||
var gamepad = FlxG.gamepads.lastActive;
|
||||
if (gamepad != null)
|
||||
{
|
||||
if (gamepad.anyJustPressed(["DPAD_LEFT", "LEFT_STICK_DIGITAL_LEFT", X]))
|
||||
{
|
||||
leftP = true;
|
||||
}
|
||||
|
||||
if (gamepad.anyJustPressed(["DPAD_RIGHT", "LEFT_STICK_DIGITAL_RIGHT", B]))
|
||||
{
|
||||
rightP = true;
|
||||
}
|
||||
|
||||
if (gamepad.anyJustPressed(['DPAD_UP', "LEFT_STICK_DIGITAL_UP", Y]))
|
||||
{
|
||||
upP = true;
|
||||
}
|
||||
|
||||
if (gamepad.anyJustPressed(["DPAD_DOWN", "LEFT_STICK_DIGITAL_DOWN", A]))
|
||||
{
|
||||
downP = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (leftP)
|
||||
noteMiss(0);
|
||||
if (upP)
|
||||
|
|
Loading…
Reference in a new issue