some other crap
This commit is contained in:
parent
d48f4aa9c7
commit
a3ae15628f
@ -695,12 +695,23 @@ class ChartingState extends MusicBeatState
|
|||||||
var rightO = FlxG.keys.justPressed.EIGHT;
|
var rightO = FlxG.keys.justPressed.EIGHT;
|
||||||
|
|
||||||
var pressArray = [left, down, up, right, leftO, downO, upO, rightO];
|
var pressArray = [left, down, up, right, leftO, downO, upO, rightO];
|
||||||
|
var delete = false;
|
||||||
|
curRenderedNotes.forEach(function(note:Note)
|
||||||
|
{
|
||||||
|
if (strumLine.overlaps(note) && pressArray[Math.floor(Math.abs(note.noteData))])
|
||||||
|
{
|
||||||
|
deleteNote(note);
|
||||||
|
delete = true;
|
||||||
|
trace('deelte note');
|
||||||
|
}
|
||||||
|
});
|
||||||
for (p in 0...pressArray.length)
|
for (p in 0...pressArray.length)
|
||||||
{
|
{
|
||||||
var i = pressArray[p];
|
var i = pressArray[p];
|
||||||
if (i)
|
if (i && !delete)
|
||||||
|
{
|
||||||
addNote(new Note(Conductor.songPosition,p));
|
addNote(new Note(Conductor.songPosition,p));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
strumLine.y = getYfromStrum((Conductor.songPosition - sectionStartTime()) % (Conductor.stepCrochet * _song.notes[curSection].lengthInSteps));
|
strumLine.y = getYfromStrum((Conductor.songPosition - sectionStartTime()) % (Conductor.stepCrochet * _song.notes[curSection].lengthInSteps));
|
||||||
@ -718,8 +729,7 @@ class ChartingState extends MusicBeatState
|
|||||||
if(!claps.contains(note))
|
if(!claps.contains(note))
|
||||||
{
|
{
|
||||||
claps.push(note);
|
claps.push(note);
|
||||||
if(_song.notes[curSection].mustHitSection) FlxG.sound.play(Paths.sound('CLAP'));
|
FlxG.sound.play(Paths.sound('SNAP'));
|
||||||
else FlxG.sound.play(Paths.sound('SNAP'));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -947,6 +957,7 @@ class ChartingState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
FlxG.sound.music.pause();
|
FlxG.sound.music.pause();
|
||||||
vocals.pause();
|
vocals.pause();
|
||||||
|
claps.splice(0, claps.length);
|
||||||
|
|
||||||
var stepMs = curStep * Conductor.stepCrochet;
|
var stepMs = curStep * Conductor.stepCrochet;
|
||||||
|
|
||||||
@ -968,6 +979,7 @@ class ChartingState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
FlxG.sound.music.pause();
|
FlxG.sound.music.pause();
|
||||||
vocals.pause();
|
vocals.pause();
|
||||||
|
claps.splice(0, claps.length);
|
||||||
|
|
||||||
var daTime:Float = 700 * FlxG.elapsed;
|
var daTime:Float = 700 * FlxG.elapsed;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user