mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
32 lines
997 B
Haxe
32 lines
997 B
Haxe
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('assets/images/campaign_menu_UI_characters.png', 'assets/images/campaign_menu_UI_characters.xml');
|
|
frames = tex;
|
|
|
|
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);
|
|
// Parent Christmas Idle
|
|
|
|
animation.play(character);
|
|
updateHitbox();
|
|
}
|
|
}
|