@@ -99,7 +99,10 @@ class ChartingStrumNote extends FlxSprite
9999 var customSkin : String = skin + Note .getNoteSkinPostfix ();
100100 if (Paths .fileExists (' images/ $customSkin .png' , IMAGE )) skin = customSkin ;
101101 }
102- else skin = ' noteskins/strums' ;
102+ else {
103+ var customSkin : String = ' NOTE_assets' + Note .getNoteSkinPostfix ();
104+ skin = ' noteskins/' + (PlayState .isPixelStage ? customSkin : ' strums' );
105+ }
103106
104107 texture = skin ; // Load texture and anims
105108 scrollFactor .set ();
@@ -123,41 +126,40 @@ class ChartingStrumNote extends FlxSprite
123126 animationArray [0 ] = Note .keysShit .get (PlayState .mania ).get (' strumAnims' )[noteData ];
124127 animationArray [1 ] = Note .keysShit .get (PlayState .mania ).get (' letters' )[noteData ];
125128 animationArray [2 ] = Note .keysShit .get (PlayState .mania ).get (' letters' )[noteData ]; // jic
126- var pxDV : Int = Note .pixelNotesDivisionValue [0 ];
129+ var pxDV : Int = Note .pixelNotesDivisionValue [1 ];
127130
128131 if (PlayState .isPixelStage )
129132 {
130133 loadGraphic (Paths .image (' pixelUI/' + texture ));
131- width = width / 4 ;
134+ width = width / pxDV ;
132135 height = height / 5 ;
136+ antialiasing = false ;
133137 loadGraphic (Paths .image (' pixelUI/' + texture ), true , Math .floor (width ), Math .floor (height ));
138+ var daFrames : Array <Int > = Note .keysShit .get (PlayState .mania ).get (' pixelAnimIndex' );
134139
140+ setGraphicSize (Std .int (width * PlayState .daPixelZoom * Note .pixelScales [PlayState .mania ]));
141+ updateHitbox ();
135142 antialiasing = false ;
136- setGraphicSize (Std .int (width * PlayState .daPixelZoom ));
137-
138- animation .add (' green' , [6 ]);
139- animation .add (' red' , [7 ]);
140- animation .add (' blue' , [5 ]);
141- animation .add (' purple' , [4 ]);
142- switch (Math .abs (noteData ) % 4 )
143+ switch (Math .abs (noteData ))
143144 {
144145 case 0 :
145- animation .add (' static' , [0 ]);
146- animation .add (' pressed' , [4 , 8 ], 12 , false );
147- animation .add (' confirm' , [12 , 16 ], 24 , false );
146+ animation .add (' static' , [daFrames [ 0 ] ]);
147+ animation .add (' pressed' , [daFrames [ 0 ] + pxDV , daFrames [ 0 ] + ( pxDV * 2 ) ], 12 , false );
148+ animation .add (' confirm' , [daFrames [ 0 ] + ( pxDV * 3 ), daFrames [ 0 ] + ( pxDV * 4 ) ], 24 , false );
148149 case 1 :
149- animation .add (' static' , [1 ]);
150- animation .add (' pressed' , [5 , 9 ], 12 , false );
151- animation .add (' confirm' , [13 , 17 ], 24 , false );
150+ animation .add (' static' , [daFrames [ 1 ] ]);
151+ animation .add (' pressed' , [daFrames [ 1 ] + pxDV , daFrames [ 1 ] + ( pxDV * 2 ) ], 12 , false );
152+ animation .add (' confirm' , [daFrames [ 1 ] + ( pxDV * 3 ), daFrames [ 1 ] + ( pxDV * 4 ) ], 24 , false );
152153 case 2 :
153- animation .add (' static' , [2 ]);
154- animation .add (' pressed' , [6 , 10 ], 12 , false );
155- animation .add (' confirm' , [14 , 18 ], 12 , false );
154+ animation .add (' static' , [daFrames [ 2 ] ]);
155+ animation .add (' pressed' , [daFrames [ 2 ] + pxDV , daFrames [ 2 ] + ( pxDV * 2 ) ], 12 , false );
156+ animation .add (' confirm' , [daFrames [ 2 ] + ( pxDV * 3 ), daFrames [ 2 ] + ( pxDV * 4 )], 24 , false );
156157 case 3 :
157- animation .add (' static' , [3 ]);
158- animation .add (' pressed' , [7 , 11 ], 12 , false );
159- animation .add (' confirm' , [15 , 19 ], 24 , false );
158+ animation .add (' static' , [daFrames [ 3 ] ]);
159+ animation .add (' pressed' , [daFrames [ 3 ] + pxDV , daFrames [ 3 ] + ( pxDV * 2 ) ], 12 , false );
160+ animation .add (' confirm' , [daFrames [ 3 ] + ( pxDV * 3 ), daFrames [ 3 ] + ( pxDV * 4 ) ], 24 , false );
160161 }
162+ // i used windows calculator
161163 }
162164 else
163165 {
0 commit comments