1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-10 08:44:47 +00:00
Funkin/source/play/PicoFight.hx
2022-02-16 16:31:20 -05:00

37 lines
632 B
Haxe

package play;
import flixel.FlxSprite;
class PicoFight extends MusicBeatState
{
var picoHealth:Float = 1;
var darnellHealth:Float = 1;
override function create()
{
var bg:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, FlxG.height);
bg.scrollFactor.set();
add(bg);
// fuk u, hardcoded bullshit bitch
FlxG.sound.playMusic(Paths.inst("blazin"));
Conductor.bpm = 180;
super.create();
}
override function update(elapsed:Float)
{
Conductor.songPosition = FlxG.sound.music.time;
super.update(elapsed);
}
override function beatHit()
{
picoHealth += 1;
trace(picoHealth);
super.beatHit();
}
}