File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
source/funkin/play/notes/notestyle Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ class NoteStyle implements IRegistryEntry<NoteStyleData>
8686
8787 target .antialiasing = ! (_data .assets ?. note ?. isPixel ?? false );
8888
89+ var noteOffsets : Array <Float > = getNoteOffsets ();
90+ target .offset .set (noteOffsets [0 ], noteOffsets [1 ]);
91+
8992 // Apply the animations.
9093 buildNoteAnimations (target );
9194
@@ -180,6 +183,11 @@ class NoteStyle implements IRegistryEntry<NoteStyleData>
180183 return _data .assets ?. note ?. scale ?? fallback ?. getNoteScale () ?? 1.0 ;
181184 }
182185
186+ public function getNoteOffsets (): Array <Float >
187+ {
188+ return _data ?. assets ?. note ?. offsets ?? fallback ?. getNoteOffsets () ?? [0.0 , 0.0 ];
189+ }
190+
183191 function fetchNoteAnimationData (dir : NoteDirection ): Null <AnimationData >
184192 {
185193 var result : Null <AnimationData > = switch (dir )
You can’t perform that action at this time.
0 commit comments