1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-16 03:43:36 +00:00
Funkin/source/MenuCharacter.hx

31 lines
892 B
Haxe
Raw Normal View History

2020-10-31 00:09:33 +00:00
package;
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 tex = FlxAtlasFrames.fromSparrow(AssetPaths.campaign_menu_UI_characters__png, AssetPaths.campaign_menu_UI_characters__xml);
frames = tex;
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:37:04 +00:00
animation.addByPrefix('mom', "Mom Idle Black Lines smol", 24);
2020-10-31 00:09:33 +00:00
animation.play(character);
updateHitbox();
}
}