Files
FNF-i486-Engine/source/NoteGroup.hx
JordanSantiagoYT 66c2cc7f4a uh, ok
removed useless variables in NoteGroup
fixed the playstate countdown probably starting regardless of whether or not you actually wanted the game to skip the countdown
2024-06-23 18:02:10 -04:00

28 lines
543 B
Haxe

package;
import flixel.util.FlxSort;
import Conductor;
import Note.PreloadedChartNote;
class NoteGroup extends FlxTypedGroup<Note> {
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);
}
}