mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 16:17:53 -05:00
37 lines
632 B
Haxe
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();
|
||
|
}
|
||
|
}
|