Files
FNF-i486-Engine/source/NoteGroup.hx
JordanSantiagoYT 497741b422 uhhhhhhh
Even LESS Botplay Lag is no longer turned on by default (i think? idk maybe it's always been off by default but i just made sure)
Completely got rid of Emitter
added rewritten note recycling, but i wasnt really satisfied with it because of memory leaks. but i didn't want to get rid of it again so i just decided to make it an option
it's also adapted in the chart testing, so there
2024-06-23 06:02:06 -04:00

31 lines
621 B
Haxe

package;
import flixel.util.FlxSort;
import Conductor;
import Note.PreloadedChartNote;
class NoteGroup extends FlxTypedGroup<Note> {
var __loopSprite:Note;
var i:Int = 0;
var __currentlyLooping:Bool = false;
var pool:Array<Note> = [];
public function pushToPool(object:Note)
{
pool.push(object);
}
var notePopped:Note = new Note();
public inline function spawnNote(chartData:PreloadedChartNote)
{
notePopped = pool.pop();
if (notePopped == null)
{
notePopped = new Note();
members.push(notePopped);
length++;
}
else notePopped.exists = true;
notePopped.setupNoteData(chartData);
}
}