mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 14:24:28 +00:00
43 lines
1.3 KiB
Haxe
43 lines
1.3 KiB
Haxe
package funkin;
|
|
|
|
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;
|
|
|
|
var suffix:String = character;
|
|
|
|
if (character != "darnell" && character != "nene") suffix = "characters";
|
|
|
|
var tex = Paths.getSparrowAtlas('campaign_menu_UI_' + suffix);
|
|
frames = tex;
|
|
|
|
trace(character);
|
|
|
|
animation.addByPrefix('bf', "BF idle dance white", 24);
|
|
animation.addByPrefix('bfConfirm', 'BF HEY!!', 24, false);
|
|
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);
|
|
animation.addByPrefix('pico', "Pico Idle Dance", 24);
|
|
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
|
|
animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24);
|
|
animation.addByPrefix('senpai', "SENPAI idle Black Lines", 24);
|
|
animation.addByPrefix('tankman', "Tankman Menu BLACK", 24);
|
|
animation.addByPrefix('darnell', "Darnell Black Lines To Scale", 24);
|
|
animation.addByPrefix('nene', "Nene Black Lines To Scale", 24);
|
|
// Parent Christmas Idle
|
|
|
|
animation.play(character);
|
|
updateHitbox();
|
|
}
|
|
}
|