Unhardcode Noteskins, gfVersion, and Stages

YOOOOOOOOO
This commit is contained in:
CyndaquilDAC
2021-04-29 13:43:41 -05:00
parent 79efdec4d8
commit 4f60b211d4
52 changed files with 234 additions and 22387 deletions

View File

@ -9,6 +9,7 @@ import flixel.util.FlxColor;
#if polymod
import polymod.format.ParseRules.TargetSignatureElement;
#end
import PlayState;
using StringTools;
@ -58,9 +59,9 @@ class Note extends FlxSprite
var daStage:String = PlayState.curStage;
switch (daStage)
switch (PlayState.SONG.noteStyle)
{
case 'school' | 'schoolEvil':
case 'pixel':
loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17);
animation.add('greenScroll', [6]);
@ -86,6 +87,28 @@ class Note extends FlxSprite
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
updateHitbox();
case 'normal':
frames = Paths.getSparrowAtlas('NOTE_assets');
animation.addByPrefix('greenScroll', 'green0');
animation.addByPrefix('redScroll', 'red0');
animation.addByPrefix('blueScroll', 'blue0');
animation.addByPrefix('purpleScroll', 'purple0');
animation.addByPrefix('purpleholdend', 'pruple end hold');
animation.addByPrefix('greenholdend', 'green hold end');
animation.addByPrefix('redholdend', 'red hold end');
animation.addByPrefix('blueholdend', 'blue hold end');
animation.addByPrefix('purplehold', 'purple hold piece');
animation.addByPrefix('greenhold', 'green hold piece');
animation.addByPrefix('redhold', 'red hold piece');
animation.addByPrefix('bluehold', 'blue hold piece');
setGraphicSize(Std.int(width * 0.7));
updateHitbox();
antialiasing = true;
default:
frames = Paths.getSparrowAtlas('NOTE_assets');