1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 06:14:36 +00:00
Funkin/source/Boyfriend.hx

31 lines
886 B
Haxe
Raw Normal View History

2020-10-04 18:50:12 +00:00
package;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.graphics.frames.FlxAtlasFrames;
2020-10-04 22:27:49 +00:00
class Boyfriend extends Character
2020-10-04 18:50:12 +00:00
{
public function new(x:Float, y:Float)
{
super(x, y);
var tex = FlxAtlasFrames.fromSparrow(AssetPaths.BOYFRIEND__png, AssetPaths.BOYFRIEND__xml);
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP', 24, false);
animation.addByPrefix('singLEFT', 'BF NOTE LEFT', 24, false);
animation.addByPrefix('singRIGHT', 'BF NOTE RIGHT', 24, false);
animation.addByPrefix('singDOWN', 'BF NOTE DOWN', 24, false);
animation.addByPrefix('hey', 'BF HEY', 24, false);
2020-10-04 21:44:52 +00:00
playAnim('idle');
2020-10-05 00:53:49 +00:00
addOffset('idle', -5);
addOffset("singUP", -29, 27);
2020-10-04 21:44:52 +00:00
addOffset("singRIGHT", -38, -7);
addOffset("singLEFT", 12, -6);
2020-10-05 00:53:49 +00:00
addOffset("singDOWN", -10, -50);
addOffset("hey", 7, 4);
2020-10-04 21:44:52 +00:00
}
2020-10-04 18:50:12 +00:00
}