mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-02-02 17:58:08 +00:00
assets and gf and shit
This commit is contained in:
parent
0815f32a97
commit
d1a10dc0b4
|
@ -51,6 +51,9 @@ class PlayState extends FlxState
|
||||||
private var camZooming:Bool = false;
|
private var camZooming:Bool = false;
|
||||||
private var curSong:String = "";
|
private var curSong:String = "";
|
||||||
|
|
||||||
|
private var gfSpeed:Int = 1;
|
||||||
|
private var health:Float = 1;
|
||||||
|
|
||||||
override public function create()
|
override public function create()
|
||||||
{
|
{
|
||||||
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(AssetPaths.bg__png);
|
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(AssetPaths.bg__png);
|
||||||
|
@ -63,6 +66,7 @@ class PlayState extends FlxState
|
||||||
|
|
||||||
gf = new Girlfriend(400, 130);
|
gf = new Girlfriend(400, 130);
|
||||||
gf.scrollFactor.set(0.95, 0.95);
|
gf.scrollFactor.set(0.95, 0.95);
|
||||||
|
gf.antialiasing = true;
|
||||||
add(gf);
|
add(gf);
|
||||||
|
|
||||||
dad = new Dad(100, 100);
|
dad = new Dad(100, 100);
|
||||||
|
@ -304,9 +308,20 @@ class PlayState extends FlxState
|
||||||
|
|
||||||
FlxG.watch.addQuick("beatShit", totalBeats);
|
FlxG.watch.addQuick("beatShit", totalBeats);
|
||||||
|
|
||||||
if (curSong == 'Fresh' && totalBeats == 16)
|
if (curSong == 'Fresh')
|
||||||
{
|
{
|
||||||
camZooming = true;
|
switch (totalBeats)
|
||||||
|
{
|
||||||
|
case 16:
|
||||||
|
camZooming = true;
|
||||||
|
gfSpeed = 2;
|
||||||
|
case 48:
|
||||||
|
gfSpeed = 1;
|
||||||
|
case 80:
|
||||||
|
gfSpeed = 2;
|
||||||
|
case 112:
|
||||||
|
gfSpeed = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
everyBeat();
|
everyBeat();
|
||||||
everyStep();
|
everyStep();
|
||||||
|
@ -539,6 +554,7 @@ class PlayState extends FlxState
|
||||||
{
|
{
|
||||||
if (!boyfriend.stunned)
|
if (!boyfriend.stunned)
|
||||||
{
|
{
|
||||||
|
health -= 0.075;
|
||||||
trace('badNote');
|
trace('badNote');
|
||||||
FlxG.sound.play('assets/sounds/missnote' + FlxG.random.int(1, 3) + ".mp3", FlxG.random.float(0.05, 0.2));
|
FlxG.sound.play('assets/sounds/missnote' + FlxG.random.int(1, 3) + ".mp3", FlxG.random.float(0.05, 0.2));
|
||||||
|
|
||||||
|
@ -638,7 +654,9 @@ class PlayState extends FlxState
|
||||||
totalBeats += 1;
|
totalBeats += 1;
|
||||||
|
|
||||||
dad.playAnim('idle');
|
dad.playAnim('idle');
|
||||||
gf.dance();
|
|
||||||
|
if (totalBeats % gfSpeed == 0)
|
||||||
|
gf.dance();
|
||||||
|
|
||||||
if (!boyfriend.animation.curAnim.name.startsWith("sing"))
|
if (!boyfriend.animation.curAnim.name.startsWith("sing"))
|
||||||
boyfriend.playAnim('idle');
|
boyfriend.playAnim('idle');
|
||||||
|
|
Loading…
Reference in a new issue