mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-29 02:04:28 +00:00
Goodbye, BackgroundDancer...
This commit is contained in:
parent
c1cea068d4
commit
591ec3bdec
|
@ -1,31 +0,0 @@
|
||||||
package;
|
|
||||||
|
|
||||||
import flixel.FlxSprite;
|
|
||||||
import flixel.graphics.frames.FlxAtlasFrames;
|
|
||||||
|
|
||||||
class BackgroundDancer extends FlxSprite
|
|
||||||
{
|
|
||||||
public function new(x:Float, y:Float)
|
|
||||||
{
|
|
||||||
super(x, y);
|
|
||||||
|
|
||||||
frames = Paths.getSparrowAtlas("limo/limoDancer");
|
|
||||||
animation.addByIndices('danceLeft', 'bg dancer sketch PINK', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
|
||||||
animation.addByIndices('danceRight', 'bg dancer sketch PINK', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
|
|
||||||
animation.play('danceLeft');
|
|
||||||
animation.finish();
|
|
||||||
antialiasing = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
var danceDir:Bool = false;
|
|
||||||
|
|
||||||
public function dance():Void
|
|
||||||
{
|
|
||||||
danceDir = !danceDir;
|
|
||||||
|
|
||||||
if (danceDir)
|
|
||||||
animation.play('danceRight', true);
|
|
||||||
else
|
|
||||||
animation.play('danceLeft', true);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -108,10 +108,6 @@ class PlayState extends MusicBeatState
|
||||||
|
|
||||||
var foregroundSprites:FlxTypedGroup<BGSprite>;
|
var foregroundSprites:FlxTypedGroup<BGSprite>;
|
||||||
|
|
||||||
var limo:FlxSprite;
|
|
||||||
var grpLimoDancers:FlxTypedGroup<BackgroundDancer>;
|
|
||||||
var fastCar:FlxSprite;
|
|
||||||
|
|
||||||
var upperBoppers:FlxSprite;
|
var upperBoppers:FlxSprite;
|
||||||
var bottomBoppers:FlxSprite;
|
var bottomBoppers:FlxSprite;
|
||||||
var santa:FlxSprite;
|
var santa:FlxSprite;
|
||||||
|
@ -2890,12 +2886,6 @@ class PlayState extends MusicBeatState
|
||||||
bottomBoppers.animation.play('bop', true);
|
bottomBoppers.animation.play('bop', true);
|
||||||
santa.animation.play('idle', true);
|
santa.animation.play('idle', true);
|
||||||
|
|
||||||
case 'limo':
|
|
||||||
grpLimoDancers.forEach(function(dancer:BackgroundDancer)
|
|
||||||
{
|
|
||||||
dancer.dance();
|
|
||||||
});
|
|
||||||
|
|
||||||
case 'tank':
|
case 'tank':
|
||||||
tankWatchtower.dance();
|
tankWatchtower.dance();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue