Funkin/source/MenuCharacter.hx

33 lines
997 B
Haxe
Raw Normal View History

2020-10-30 20:09:33 -04: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;
2021-01-04 18:56:30 -05:00
var tex = FlxAtlasFrames.fromSparrow('assets/images/campaign_menu_UI_characters.png', 'assets/images/campaign_menu_UI_characters.xml');
2020-10-30 20:09:33 -04:00
frames = tex;
animation.addByPrefix('bf', "BF idle dance white", 24);
2020-10-30 21:55:09 -04:00
animation.addByPrefix('bfConfirm', 'BF HEY!!', 24, false);
2020-10-30 20:09:33 -04: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 04:15:24 -05:00
animation.addByPrefix('pico', "Pico Idle Dance", 24);
2020-12-27 05:57:45 -05:00
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
2021-01-20 05:31:43 -05:00
animation.addByPrefix('parents-christmas', "Parent Christmas Idle", 24);
// Parent Christmas Idle
2020-10-30 20:09:33 -04:00
animation.play(character);
updateHitbox();
}
}