assets, and switch statement so i dont get roasted

This commit is contained in:
Cameron Taylor 2021-03-07 01:59:22 -05:00
parent 1c06b62fd5
commit 847ec80f07
13 changed files with 332 additions and 242 deletions

View File

@ -39,3 +39,4 @@ pico funny--pico funny
updates each friday--on time every time
shoutouts to mason--for da homies
bonk--get in the discord call
youtube search--DAnMLkteUHk

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="smokeLeft.png">
<!-- Created with Adobe Animate version 21.0.0.35450 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="SmokeBlurLeft instance 10000" x="1005" y="812" width="446" height="617" frameX="-43" frameY="-204" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10001" x="1005" y="812" width="446" height="617" frameX="-43" frameY="-204" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10002" x="1005" y="812" width="446" height="617" frameX="-43" frameY="-204" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10003" x="0" y="801" width="467" height="655" frameX="-28" frameY="-177" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10004" x="0" y="801" width="467" height="655" frameX="-28" frameY="-177" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10005" x="0" y="801" width="467" height="655" frameX="-28" frameY="-177" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10006" x="1505" y="786" width="481" height="673" frameX="-15" frameY="-151" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10007" x="1505" y="786" width="481" height="673" frameX="-15" frameY="-151" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10008" x="1505" y="786" width="481" height="673" frameX="-15" frameY="-151" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10009" x="2981" y="752" width="487" height="724" frameX="0" frameY="-119" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10010" x="2981" y="752" width="487" height="724" frameX="0" frameY="-119" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10011" x="2981" y="752" width="487" height="724" frameX="0" frameY="-119" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10012" x="2011" y="779" width="472" height="736" frameX="-11" frameY="-83" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10013" x="2011" y="779" width="472" height="736" frameX="-11" frameY="-83" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10014" x="2011" y="779" width="472" height="736" frameX="-11" frameY="-83" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10015" x="2981" y="0" width="477" height="741" frameX="-7" frameY="-68" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10016" x="2981" y="0" width="477" height="741" frameX="-7" frameY="-68" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10017" x="2981" y="0" width="477" height="741" frameX="-7" frameY="-68" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10018" x="3478" y="752" width="472" height="741" frameX="-19" frameY="-56" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10019" x="3478" y="752" width="472" height="741" frameX="-19" frameY="-56" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10020" x="3478" y="752" width="472" height="741" frameX="-19" frameY="-56" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10021" x="3468" y="0" width="476" height="742" frameX="-22" frameY="-58" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10022" x="3468" y="0" width="476" height="742" frameX="-22" frameY="-58" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10023" x="3468" y="0" width="476" height="742" frameX="-22" frameY="-58" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10024" x="2011" y="0" width="479" height="769" frameX="-21" frameY="-33" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10025" x="2011" y="0" width="479" height="769" frameX="-21" frameY="-33" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10026" x="2011" y="0" width="479" height="769" frameX="-21" frameY="-33" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10027" x="1505" y="0" width="496" height="776" frameX="-9" frameY="-23" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10028" x="1505" y="0" width="496" height="776" frameX="-9" frameY="-23" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10029" x="1505" y="0" width="496" height="776" frameX="-9" frameY="-23" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10030" x="0" y="0" width="498" height="791" frameX="-13" frameY="-11" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10031" x="0" y="0" width="498" height="791" frameX="-13" frameY="-11" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10032" x="0" y="0" width="498" height="791" frameX="-13" frameY="-11" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10033" x="1005" y="0" width="490" height="802" frameX="-17" frameY="-5" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10034" x="1005" y="0" width="490" height="802" frameX="-17" frameY="-5" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10035" x="1005" y="0" width="490" height="802" frameX="-17" frameY="-5" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10036" x="508" y="0" width="487" height="808" frameX="-21" frameY="0" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10037" x="508" y="0" width="487" height="808" frameX="-21" frameY="0" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10038" x="508" y="0" width="487" height="808" frameX="-21" frameY="0" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10039" x="2500" y="0" width="471" height="770" frameX="-25" frameY="-39" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10040" x="2500" y="0" width="471" height="770" frameX="-25" frameY="-39" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10041" x="2500" y="0" width="471" height="770" frameX="-25" frameY="-39" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10042" x="2493" y="780" width="447" height="775" frameX="-30" frameY="-37" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10043" x="2493" y="780" width="447" height="775" frameX="-30" frameY="-37" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10044" x="2493" y="780" width="447" height="775" frameX="-30" frameY="-37" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10045" x="477" y="818" width="452" height="602" frameX="-29" frameY="-217" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10046" x="477" y="818" width="452" height="602" frameX="-29" frameY="-217" frameWidth="511" frameHeight="843"/>
<SubTexture name="SmokeBlurLeft instance 10047" x="477" y="818" width="452" height="602" frameX="-29" frameY="-217" frameWidth="511" frameHeight="843"/>
</TextureAtlas>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View File

@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="smokeRight.png">
<!-- Created with Adobe Animate version 21.0.0.35450 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="SmokeRight instance 10000" x="0" y="897" width="533" height="885" frameX="-35" frameY="-47" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10001" x="1619" y="0" width="510" height="871" frameX="-38" frameY="-40" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10002" x="1619" y="0" width="510" height="871" frameX="-38" frameY="-40" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10003" x="1619" y="0" width="510" height="871" frameX="-38" frameY="-40" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10004" x="0" y="1792" width="501" height="871" frameX="-35" frameY="-32" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10005" x="0" y="1792" width="501" height="871" frameX="-35" frameY="-32" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10006" x="0" y="1792" width="501" height="871" frameX="-35" frameY="-32" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10007" x="1087" y="899" width="524" height="876" frameX="-24" frameY="-22" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10008" x="1087" y="899" width="524" height="876" frameX="-24" frameY="-22" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10009" x="1087" y="899" width="524" height="876" frameX="-24" frameY="-22" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10010" x="543" y="899" width="534" height="882" frameX="-16" frameY="-12" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10011" x="543" y="899" width="534" height="882" frameX="-16" frameY="-12" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10012" x="543" y="899" width="534" height="882" frameX="-16" frameY="-12" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10013" x="0" y="0" width="542" height="887" frameX="-2" frameY="-6" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10014" x="0" y="0" width="542" height="887" frameX="-2" frameY="-6" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10015" x="0" y="0" width="542" height="887" frameX="-2" frameY="-6" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10016" x="552" y="0" width="538" height="889" frameX="0" frameY="0" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10017" x="552" y="0" width="538" height="889" frameX="0" frameY="0" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10018" x="552" y="0" width="538" height="889" frameX="0" frameY="0" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10019" x="1621" y="881" width="535" height="830" frameX="0" frameY="-57" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10020" x="1621" y="881" width="535" height="830" frameX="0" frameY="-57" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10021" x="1621" y="881" width="535" height="830" frameX="0" frameY="-57" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10022" x="1621" y="1721" width="526" height="834" frameX="-5" frameY="-52" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10023" x="1621" y="1721" width="526" height="834" frameX="-5" frameY="-52" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10024" x="1621" y="1721" width="526" height="834" frameX="-5" frameY="-52" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10025" x="511" y="1792" width="525" height="815" frameX="-14" frameY="-68" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10026" x="511" y="1792" width="525" height="815" frameX="-14" frameY="-68" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10027" x="511" y="1792" width="525" height="815" frameX="-14" frameY="-68" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10028" x="2157" y="1721" width="515" height="738" frameX="-17" frameY="-146" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10029" x="2157" y="1721" width="515" height="738" frameX="-17" frameY="-146" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10030" x="2157" y="1721" width="515" height="738" frameX="-17" frameY="-146" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10031" x="2668" y="765" width="443" height="676" frameX="-32" frameY="-196" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10032" x="2668" y="765" width="443" height="676" frameX="-32" frameY="-196" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10033" x="2668" y="765" width="443" height="676" frameX="-32" frameY="-196" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10034" x="2668" y="0" width="481" height="755" frameX="-47" frameY="-149" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10035" x="2668" y="0" width="481" height="755" frameX="-47" frameY="-149" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10036" x="2668" y="0" width="481" height="755" frameX="-47" frameY="-149" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10037" x="1046" y="1791" width="508" height="802" frameX="-50" frameY="-121" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10038" x="1046" y="1791" width="508" height="802" frameX="-50" frameY="-121" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10039" x="1046" y="1791" width="508" height="802" frameX="-50" frameY="-121" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10040" x="2139" y="0" width="519" height="851" frameX="-37" frameY="-80" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10041" x="2139" y="0" width="519" height="851" frameX="-37" frameY="-80" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10042" x="2139" y="0" width="519" height="851" frameX="-37" frameY="-80" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10043" x="1100" y="0" width="509" height="878" frameX="-36" frameY="-60" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10044" x="1100" y="0" width="509" height="878" frameX="-36" frameY="-60" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10045" x="1100" y="0" width="509" height="878" frameX="-36" frameY="-60" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10046" x="0" y="897" width="533" height="885" frameX="-35" frameY="-47" frameWidth="568" frameHeight="938"/>
<SubTexture name="SmokeRight instance 10047" x="0" y="897" width="533" height="885" frameX="-35" frameY="-47" frameWidth="568" frameHeight="938"/>
</TextureAtlas>

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -174,272 +174,256 @@ class PlayState extends MusicBeatState
dialogue = CoolUtil.coolTextFile(Paths.txt('thorns/thornsDialogue'));
}
if (SONG.song.toLowerCase() == 'spookeez' || SONG.song.toLowerCase() == 'monster' || SONG.song.toLowerCase() == 'south')
switch (Song.song.toLowerCase())
{
curStage = "spooky";
halloweenLevel = true;
case 'spookeez' | 'monster' | 'south':
curStage = "spooky";
halloweenLevel = true;
var hallowTex = Paths.getSparrowAtlas('halloween_bg');
var hallowTex = Paths.getSparrowAtlas('halloween_bg');
halloweenBG = new FlxSprite(-200, -100);
halloweenBG.frames = hallowTex;
halloweenBG.animation.addByPrefix('idle', 'halloweem bg0');
halloweenBG.animation.addByPrefix('lightning', 'halloweem bg lightning strike', 24, false);
halloweenBG.animation.play('idle');
halloweenBG.antialiasing = true;
add(halloweenBG);
halloweenBG = new FlxSprite(-200, -100);
halloweenBG.frames = hallowTex;
halloweenBG.animation.addByPrefix('idle', 'halloweem bg0');
halloweenBG.animation.addByPrefix('lightning', 'halloweem bg lightning strike', 24, false);
halloweenBG.animation.play('idle');
halloweenBG.antialiasing = true;
add(halloweenBG);
isHalloween = true;
}
else if (SONG.song.toLowerCase() == 'pico' || SONG.song.toLowerCase() == 'blammed' || SONG.song.toLowerCase() == 'philly')
{
curStage = 'philly';
isHalloween = true;
case 'pico' | 'blammed' | 'philly':
curStage = 'philly';
var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('philly/sky'));
bg.scrollFactor.set(0.1, 0.1);
add(bg);
var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('philly/sky'));
bg.scrollFactor.set(0.1, 0.1);
add(bg);
var city:FlxSprite = new FlxSprite(-10).loadGraphic(Paths.image('philly/city'));
city.scrollFactor.set(0.3, 0.3);
city.setGraphicSize(Std.int(city.width * 0.85));
city.updateHitbox();
add(city);
var city:FlxSprite = new FlxSprite(-10).loadGraphic(Paths.image('philly/city'));
city.scrollFactor.set(0.3, 0.3);
city.setGraphicSize(Std.int(city.width * 0.85));
city.updateHitbox();
add(city);
phillyCityLights = new FlxTypedGroup<FlxSprite>();
add(phillyCityLights);
phillyCityLights = new FlxTypedGroup<FlxSprite>();
add(phillyCityLights);
for (i in 0...5)
{
var light:FlxSprite = new FlxSprite(city.x).loadGraphic(Paths.image('philly/win' + i));
light.scrollFactor.set(0.3, 0.3);
light.visible = false;
light.setGraphicSize(Std.int(light.width * 0.85));
light.updateHitbox();
light.antialiasing = true;
phillyCityLights.add(light);
}
for (i in 0...5)
{
var light:FlxSprite = new FlxSprite(city.x).loadGraphic(Paths.image('philly/win' + i));
light.scrollFactor.set(0.3, 0.3);
light.visible = false;
light.setGraphicSize(Std.int(light.width * 0.85));
light.updateHitbox();
light.antialiasing = true;
phillyCityLights.add(light);
}
var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic(Paths.image('philly/behindTrain'));
add(streetBehind);
var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic(Paths.image('philly/behindTrain'));
add(streetBehind);
phillyTrain = new FlxSprite(2000, 360).loadGraphic(Paths.image('philly/train'));
add(phillyTrain);
phillyTrain = new FlxSprite(2000, 360).loadGraphic(Paths.image('philly/train'));
add(phillyTrain);
trainSound = new FlxSound().loadEmbedded(Paths.sound('train_passes'));
FlxG.sound.list.add(trainSound);
trainSound = new FlxSound().loadEmbedded(Paths.sound('train_passes'));
FlxG.sound.list.add(trainSound);
// var cityLights:FlxSprite = new FlxSprite().loadGraphic(AssetPaths.win0.png);
// var cityLights:FlxSprite = new FlxSprite().loadGraphic(AssetPaths.win0.png);
var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic(Paths.image('philly/street'));
add(street);
}
else if (SONG.song.toLowerCase() == 'milf' || SONG.song.toLowerCase() == 'satin-panties' || SONG.song.toLowerCase() == 'high')
{
curStage = 'limo';
defaultCamZoom = 0.90;
var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic(Paths.image('philly/street'));
add(street);
case "milf" | 'satin-panties' | 'high':
curStage = 'limo';
defaultCamZoom = 0.90;
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset'));
skyBG.scrollFactor.set(0.1, 0.1);
add(skyBG);
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset'));
skyBG.scrollFactor.set(0.1, 0.1);
add(skyBG);
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
bgLimo.frames = Paths.getSparrowAtlas('limo/bgLimo');
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
bgLimo.animation.play('drive');
bgLimo.scrollFactor.set(0.4, 0.4);
add(bgLimo);
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
bgLimo.frames = Paths.getSparrowAtlas('limo/bgLimo');
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
bgLimo.animation.play('drive');
bgLimo.scrollFactor.set(0.4, 0.4);
add(bgLimo);
grpLimoDancers = new FlxTypedGroup<BackgroundDancer>();
add(grpLimoDancers);
grpLimoDancers = new FlxTypedGroup<BackgroundDancer>();
add(grpLimoDancers);
for (i in 0...5)
{
var dancer:BackgroundDancer = new BackgroundDancer((370 * i) + 130, bgLimo.y - 400);
dancer.scrollFactor.set(0.4, 0.4);
grpLimoDancers.add(dancer);
}
for (i in 0...5)
{
var dancer:BackgroundDancer = new BackgroundDancer((370 * i) + 130, bgLimo.y - 400);
dancer.scrollFactor.set(0.4, 0.4);
grpLimoDancers.add(dancer);
}
var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic(Paths.image('limo/limoOverlay'));
overlayShit.alpha = 0.5;
// add(overlayShit);
var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic(Paths.image('limo/limoOverlay'));
overlayShit.alpha = 0.5;
// add(overlayShit);
// var shaderBullshit = new BlendModeEffect(new OverlayShader(), FlxColor.RED);
// FlxG.camera.setFilters([new ShaderFilter(cast shaderBullshit.shader)]);
// overlayShit.shader = shaderBullshit;
// var shaderBullshit = new BlendModeEffect(new OverlayShader(), FlxColor.RED);
limo = new FlxSprite(-120, 550);
limo.frames = Paths.getSparrowAtlas('limo/limoDrive');
limo.animation.addByPrefix('drive', "Limo stage", 24);
limo.animation.play('drive');
limo.antialiasing = true;
// FlxG.camera.setFilters([new ShaderFilter(cast shaderBullshit.shader)]);
// overlayShit.shader = shaderBullshit;
var limoTex = Paths.getSparrowAtlas('limo/limoDrive');
limo = new FlxSprite(-120, 550);
limo.frames = limoTex;
limo.animation.addByPrefix('drive', "Limo stage", 24);
limo.animation.play('drive');
limo.antialiasing = true;
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol'));
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol'));
// add(limo);
}
else if (SONG.song.toLowerCase() == 'cocoa' || SONG.song.toLowerCase() == 'eggnog')
{
curStage = 'mall';
case "cocoa" | 'eggnog':
curStage = 'mall';
defaultCamZoom = 0.80;
defaultCamZoom = 0.80;
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls'));
bg.antialiasing = true;
bg.scrollFactor.set(0.2, 0.2);
bg.active = false;
bg.setGraphicSize(Std.int(bg.width * 0.8));
bg.updateHitbox();
add(bg);
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls'));
bg.antialiasing = true;
bg.scrollFactor.set(0.2, 0.2);
bg.active = false;
bg.setGraphicSize(Std.int(bg.width * 0.8));
bg.updateHitbox();
add(bg);
upperBoppers = new FlxSprite(-240, -90);
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop');
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
upperBoppers.antialiasing = true;
upperBoppers.scrollFactor.set(0.33, 0.33);
upperBoppers.setGraphicSize(Std.int(upperBoppers.width * 0.85));
upperBoppers.updateHitbox();
add(upperBoppers);
upperBoppers = new FlxSprite(-240, -90);
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop');
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
upperBoppers.antialiasing = true;
upperBoppers.scrollFactor.set(0.33, 0.33);
upperBoppers.setGraphicSize(Std.int(upperBoppers.width * 0.85));
upperBoppers.updateHitbox();
add(upperBoppers);
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator'));
bgEscalator.antialiasing = true;
bgEscalator.scrollFactor.set(0.3, 0.3);
bgEscalator.active = false;
bgEscalator.setGraphicSize(Std.int(bgEscalator.width * 0.9));
bgEscalator.updateHitbox();
add(bgEscalator);
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator'));
bgEscalator.antialiasing = true;
bgEscalator.scrollFactor.set(0.3, 0.3);
bgEscalator.active = false;
bgEscalator.setGraphicSize(Std.int(bgEscalator.width * 0.9));
bgEscalator.updateHitbox();
add(bgEscalator);
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree'));
tree.antialiasing = true;
tree.scrollFactor.set(0.40, 0.40);
add(tree);
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree'));
tree.antialiasing = true;
tree.scrollFactor.set(0.40, 0.40);
add(tree);
bottomBoppers = new FlxSprite(-300, 140);
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop');
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
bottomBoppers.antialiasing = true;
bottomBoppers.scrollFactor.set(0.9, 0.9);
bottomBoppers.setGraphicSize(Std.int(bottomBoppers.width * 1));
bottomBoppers.updateHitbox();
add(bottomBoppers);
bottomBoppers = new FlxSprite(-300, 140);
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop');
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
bottomBoppers.antialiasing = true;
bottomBoppers.scrollFactor.set(0.9, 0.9);
bottomBoppers.setGraphicSize(Std.int(bottomBoppers.width * 1));
bottomBoppers.updateHitbox();
add(bottomBoppers);
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow'));
fgSnow.active = false;
fgSnow.antialiasing = true;
add(fgSnow);
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow'));
fgSnow.active = false;
fgSnow.antialiasing = true;
add(fgSnow);
santa = new FlxSprite(-840, 150);
santa.frames = Paths.getSparrowAtlas('christmas/santa');
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
santa.antialiasing = true;
add(santa);
}
else if (SONG.song.toLowerCase() == 'winter-horrorland')
{
curStage = 'mallEvil';
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG'));
bg.antialiasing = true;
bg.scrollFactor.set(0.2, 0.2);
bg.active = false;
bg.setGraphicSize(Std.int(bg.width * 0.8));
bg.updateHitbox();
add(bg);
santa = new FlxSprite(-840, 150);
santa.frames = Paths.getSparrowAtlas('christmas/santa');
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
santa.antialiasing = true;
add(santa);
case 'winter-horrorland':
curStage = 'mallEvil';
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG'));
bg.antialiasing = true;
bg.scrollFactor.set(0.2, 0.2);
bg.active = false;
bg.setGraphicSize(Std.int(bg.width * 0.8));
bg.updateHitbox();
add(bg);
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree'));
evilTree.antialiasing = true;
evilTree.scrollFactor.set(0.2, 0.2);
add(evilTree);
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree'));
evilTree.antialiasing = true;
evilTree.scrollFactor.set(0.2, 0.2);
add(evilTree);
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow"));
evilSnow.antialiasing = true;
add(evilSnow);
}
else if (SONG.song.toLowerCase() == 'senpai' || SONG.song.toLowerCase() == 'roses')
{
curStage = 'school';
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow"));
evilSnow.antialiasing = true;
add(evilSnow);
case 'senpai' | 'roses':
curStage = 'school';
// defaultCamZoom = 0.9;
// defaultCamZoom = 0.9;
var bgSky = new FlxSprite().loadGraphic(Paths.image('weeb/weebSky'));
bgSky.scrollFactor.set(0.1, 0.1);
add(bgSky);
var bgSky = new FlxSprite().loadGraphic(Paths.image('weeb/weebSky'));
bgSky.scrollFactor.set(0.1, 0.1);
add(bgSky);
var repositionShit = -200;
var repositionShit = -200;
var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic(Paths.image('weeb/weebSchool'));
bgSchool.scrollFactor.set(0.6, 0.90);
add(bgSchool);
var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic(Paths.image('weeb/weebSchool'));
bgSchool.scrollFactor.set(0.6, 0.90);
add(bgSchool);
var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic(Paths.image('weeb/weebStreet'));
bgStreet.scrollFactor.set(0.95, 0.95);
add(bgStreet);
var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic(Paths.image('weeb/weebStreet'));
bgStreet.scrollFactor.set(0.95, 0.95);
add(bgStreet);
var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic(Paths.image('weeb/weebTreesBack'));
fgTrees.scrollFactor.set(0.9, 0.9);
add(fgTrees);
var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic(Paths.image('weeb/weebTreesBack'));
fgTrees.scrollFactor.set(0.9, 0.9);
add(fgTrees);
var bgTrees:FlxSprite = new FlxSprite(repositionShit - 380, -800);
var treetex = Paths.getPackerAtlas('weeb/weebTrees');
bgTrees.frames = treetex;
bgTrees.animation.add('treeLoop', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 12);
bgTrees.animation.play('treeLoop');
bgTrees.scrollFactor.set(0.85, 0.85);
add(bgTrees);
var bgTrees:FlxSprite = new FlxSprite(repositionShit - 380, -800);
var treetex = Paths.getPackerAtlas('weeb/weebTrees');
bgTrees.frames = treetex;
bgTrees.animation.add('treeLoop', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 12);
bgTrees.animation.play('treeLoop');
bgTrees.scrollFactor.set(0.85, 0.85);
add(bgTrees);
var treeLeaves:FlxSprite = new FlxSprite(repositionShit, -40);
treeLeaves.frames = Paths.getSparrowAtlas('weeb/petals');
treeLeaves.animation.addByPrefix('leaves', 'PETALS ALL', 24, true);
treeLeaves.animation.play('leaves');
treeLeaves.scrollFactor.set(0.85, 0.85);
add(treeLeaves);
var treeLeaves:FlxSprite = new FlxSprite(repositionShit, -40);
treeLeaves.frames = Paths.getSparrowAtlas('weeb/petals');
treeLeaves.animation.addByPrefix('leaves', 'PETALS ALL', 24, true);
treeLeaves.animation.play('leaves');
treeLeaves.scrollFactor.set(0.85, 0.85);
add(treeLeaves);
var widShit = Std.int(bgSky.width * 6);
var widShit = Std.int(bgSky.width * 6);
bgSky.setGraphicSize(widShit);
bgSchool.setGraphicSize(widShit);
bgStreet.setGraphicSize(widShit);
bgTrees.setGraphicSize(Std.int(widShit * 1.4));
fgTrees.setGraphicSize(Std.int(widShit * 0.8));
treeLeaves.setGraphicSize(widShit);
bgSky.setGraphicSize(widShit);
bgSchool.setGraphicSize(widShit);
bgStreet.setGraphicSize(widShit);
bgTrees.setGraphicSize(Std.int(widShit * 1.4));
fgTrees.setGraphicSize(Std.int(widShit * 0.8));
treeLeaves.setGraphicSize(widShit);
fgTrees.updateHitbox();
bgSky.updateHitbox();
bgSchool.updateHitbox();
bgStreet.updateHitbox();
bgTrees.updateHitbox();
treeLeaves.updateHitbox();
fgTrees.updateHitbox();
bgSky.updateHitbox();
bgSchool.updateHitbox();
bgStreet.updateHitbox();
bgTrees.updateHitbox();
treeLeaves.updateHitbox();
bgGirls = new BackgroundGirls(-100, 190);
bgGirls.scrollFactor.set(0.9, 0.9);
bgGirls = new BackgroundGirls(-100, 190);
bgGirls.scrollFactor.set(0.9, 0.9);
if (SONG.song.toLowerCase() == 'roses')
{
bgGirls.getScared();
}
if (SONG.song.toLowerCase() == 'roses')
{
bgGirls.getScared();
}
bgGirls.setGraphicSize(Std.int(bgGirls.width * daPixelZoom));
bgGirls.updateHitbox();
add(bgGirls);
}
else if (SONG.song.toLowerCase() == 'thorns')
{
curStage = 'schoolEvil';
bgGirls.setGraphicSize(Std.int(bgGirls.width * daPixelZoom));
bgGirls.updateHitbox();
add(bgGirls);
case 'thorns':
curStage = 'schoolEvil';
var waveEffectBG = new FlxWaveEffect(FlxWaveMode.ALL, 2, -1, 3, 2);
var waveEffectFG = new FlxWaveEffect(FlxWaveMode.ALL, 2, -1, 5, 2);
var waveEffectBG = new FlxWaveEffect(FlxWaveMode.ALL, 2, -1, 3, 2);
var waveEffectFG = new FlxWaveEffect(FlxWaveMode.ALL, 2, -1, 5, 2);
var posX = 400;
var posY = 200;
var posX = 400;
var posY = 200;
var bg:FlxSprite = new FlxSprite(posX, posY);
bg.frames = Paths.getSparrowAtlas('weeb/animatedEvilSchool');
bg.animation.addByPrefix('idle', 'background 2', 24);
bg.animation.play('idle');
bg.scrollFactor.set(0.8, 0.9);
bg.scale.set(6, 6);
add(bg);
var bg:FlxSprite = new FlxSprite(posX, posY);
bg.frames = Paths.getSparrowAtlas('weeb/animatedEvilSchool');
bg.animation.addByPrefix('idle', 'background 2', 24);
bg.animation.play('idle');
bg.scrollFactor.set(0.8, 0.9);
bg.scale.set(6, 6);
add(bg);
/*
var bg:FlxSprite = new FlxSprite(posX, posY).loadGraphic(Paths.image('weeb/evilSchoolBG'));
@ -484,33 +468,32 @@ class PlayState extends MusicBeatState
add(waveSprite);
add(waveSpriteFG);
*/
}
else
{
defaultCamZoom = 0.9;
curStage = 'stage';
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback'));
bg.antialiasing = true;
bg.scrollFactor.set(0.9, 0.9);
bg.active = false;
add(bg);
var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront'));
stageFront.setGraphicSize(Std.int(stageFront.width * 1.1));
stageFront.updateHitbox();
stageFront.antialiasing = true;
stageFront.scrollFactor.set(0.9, 0.9);
stageFront.active = false;
add(stageFront);
default:
defaultCamZoom = 0.9;
curStage = 'stage';
var bg:FlxSprite = new FlxSprite(-600, -200).loadGraphic(Paths.image('stageback'));
bg.antialiasing = true;
bg.scrollFactor.set(0.9, 0.9);
bg.active = false;
add(bg);
var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains'));
stageCurtains.setGraphicSize(Std.int(stageCurtains.width * 0.9));
stageCurtains.updateHitbox();
stageCurtains.antialiasing = true;
stageCurtains.scrollFactor.set(1.3, 1.3);
stageCurtains.active = false;
var stageFront:FlxSprite = new FlxSprite(-650, 600).loadGraphic(Paths.image('stagefront'));
stageFront.setGraphicSize(Std.int(stageFront.width * 1.1));
stageFront.updateHitbox();
stageFront.antialiasing = true;
stageFront.scrollFactor.set(0.9, 0.9);
stageFront.active = false;
add(stageFront);
add(stageCurtains);
var stageCurtains:FlxSprite = new FlxSprite(-500, -300).loadGraphic(Paths.image('stagecurtains'));
stageCurtains.setGraphicSize(Std.int(stageCurtains.width * 0.9));
stageCurtains.updateHitbox();
stageCurtains.antialiasing = true;
stageCurtains.scrollFactor.set(1.3, 1.3);
stageCurtains.active = false;
add(stageCurtains);
}
var gfVersion:String = 'gf';