optimization for claps as well
This commit is contained in:
parent
94b6cba78d
commit
2b13c590fe
@ -2132,14 +2132,14 @@ class ChartingState extends MusicBeatState
|
|||||||
|
|
||||||
if (playClaps)
|
if (playClaps)
|
||||||
{
|
{
|
||||||
curRenderedNotes.forEach(function(note:Note)
|
for(note in shownNotes)
|
||||||
{
|
{
|
||||||
if (note.strumTime <= Conductor.songPosition && !claps.contains(note))
|
if (note.strumTime <= Conductor.songPosition && !claps.contains(note))
|
||||||
{
|
{
|
||||||
claps.push(note);
|
claps.push(note);
|
||||||
FlxG.sound.play(Paths.sound('SNAP'));
|
FlxG.sound.play(Paths.sound('SNAP'));
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
/*curRenderedNotes.forEach(function(note:Note) {
|
/*curRenderedNotes.forEach(function(note:Note) {
|
||||||
if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit
|
if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user