2022-03-08 08:13:53 +00:00
|
|
|
package funkin;
|
2020-10-31 00:09:33 +00:00
|
|
|
|
|
|
|
import flixel.FlxSprite;
|
|
|
|
import flixel.graphics.frames.FlxAtlasFrames;
|
|
|
|
|
|
|
|
class MenuCharacter extends FlxSprite
|
|
|
|
{
|
|
|
|
public var character:String;
|
|
|
|
|
|
|
|
public function new(x:Float, character:String = 'bf')
|
|
|
|
{
|
|
|
|
super(x);
|
|
|
|
|
|
|
|
this.character = character;
|
|
|
|
|
2022-08-25 05:35:47 +00:00
|
|
|
var suffix:String = character;
|
|
|
|
|
|
|
|
if (character != "darnell" && character != "nene")
|
|
|
|
suffix = "characters";
|
|
|
|
|
|
|
|
var tex = Paths.getSparrowAtlas('campaign_menu_UI_' + suffix);
|
2020-10-31 00:09:33 +00:00
|
|
|
frames = tex;
|
|
|
|
|
2022-08-25 05:35:47 +00:00
|
|
|
trace(character);
|
|
|
|
|
2020-10-31 00:09:33 +00:00
|
|
|
animation.addByPrefix('bf', "BF idle dance white", 24);
|
2020-10-31 01:55:09 +00:00
|
|
|
animation.addByPrefix('bfConfirm', 'BF HEY!!', 24, false);
|
2020-10-31 00:09:33 +00:00
|
|
|
animation.addByPrefix('gf', "GF Dancing Beat WHITE", 24);
|
|
|
|
animation.addByPrefix('dad', "Dad idle dance BLACK LINE", 24);
|
|
|
|
animation.addByPrefix('spooky', "spooky dance idle BLACK LINES", 24);
|
2020-12-11 09:15:24 +00:00
|
|
|
animation.addByPrefix('pico', "Pico Idle Dance", 24);
|
2020-12-27 10:57:45 +00:00
|
|
|
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
|
2021-01-20 10:31:43 +00:00
|
|
|
animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24);
|
2021-02-02 07:20:14 +00:00
|
|
|
animation.addByPrefix('senpai', "SENPAI idle Black Lines", 24);
|
2021-04-09 20:37:54 +00:00
|
|
|
animation.addByPrefix('tankman', "Tankman Menu BLACK", 24);
|
2022-08-25 05:35:47 +00:00
|
|
|
animation.addByPrefix('darnell', "Darnell Black Lines To Scale", 24);
|
|
|
|
animation.addByPrefix('nene', "Nene Black Lines To Scale", 24);
|
2021-01-20 10:31:43 +00:00
|
|
|
// Parent Christmas Idle
|
2020-10-31 00:09:33 +00:00
|
|
|
|
|
|
|
animation.play(character);
|
|
|
|
updateHitbox();
|
|
|
|
}
|
|
|
|
}
|