Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source/funkin/play/notes/notestyle/NoteStyle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class NoteStyle implements IRegistryEntry<NoteStyleData>

target.antialiasing = !(_data.assets?.note?.isPixel ?? false);

var noteOffsets:Array<Float> = getNoteOffsets();
target.offset.set(noteOffsets[0], noteOffsets[1]);

// Apply the animations.
buildNoteAnimations(target);

Expand Down Expand Up @@ -180,6 +183,11 @@ class NoteStyle implements IRegistryEntry<NoteStyleData>
return _data.assets?.note?.scale ?? fallback?.getNoteScale() ?? 1.0;
}

public function getNoteOffsets():Array<Float>
{
return _data?.assets?.note?.offsets ?? fallback?.getNoteOffsets() ?? [0.0, 0.0];
}

function fetchNoteAnimationData(dir:NoteDirection):Null<AnimationData>
{
var result:Null<AnimationData> = switch (dir)
Expand Down