intro date shit
This commit is contained in:
parent
7865a59fed
commit
182a6e8a17
BIN
assets/sounds/intro1-pixel.mp3
Normal file
BIN
assets/sounds/intro1-pixel.mp3
Normal file
Binary file not shown.
BIN
assets/sounds/intro1-pixel.ogg
Normal file
BIN
assets/sounds/intro1-pixel.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/intro2-pixel.mp3
Normal file
BIN
assets/sounds/intro2-pixel.mp3
Normal file
Binary file not shown.
BIN
assets/sounds/intro2-pixel.ogg
Normal file
BIN
assets/sounds/intro2-pixel.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/intro3-pixel.mp3
Normal file
BIN
assets/sounds/intro3-pixel.mp3
Normal file
Binary file not shown.
BIN
assets/sounds/intro3-pixel.ogg
Normal file
BIN
assets/sounds/intro3-pixel.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/introGo-pixel.mp3
Normal file
BIN
assets/sounds/introGo-pixel.mp3
Normal file
Binary file not shown.
BIN
assets/sounds/introGo-pixel.ogg
Normal file
BIN
assets/sounds/introGo-pixel.ogg
Normal file
Binary file not shown.
@ -676,18 +676,22 @@ class PlayState extends MusicBeatState
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
var introAlts:Array<String> = introAssets.get('default');
|
var introAlts:Array<String> = introAssets.get('default');
|
||||||
|
var altSuffix:String = "";
|
||||||
|
|
||||||
for (value in introAssets.keys())
|
for (value in introAssets.keys())
|
||||||
{
|
{
|
||||||
if (value == curStage)
|
if (value == curStage)
|
||||||
|
{
|
||||||
introAlts = introAssets.get(value);
|
introAlts = introAssets.get(value);
|
||||||
|
altSuffix = '-pixel';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (swagCounter)
|
switch (swagCounter)
|
||||||
|
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
FlxG.sound.play('assets/sounds/intro3' + TitleState.soundExt, 0.6);
|
FlxG.sound.play('assets/sounds/intro3' + altSuffix + TitleState.soundExt, 0.6);
|
||||||
case 1:
|
case 1:
|
||||||
var ready:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[0]);
|
var ready:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[0]);
|
||||||
ready.scrollFactor.set();
|
ready.scrollFactor.set();
|
||||||
@ -705,7 +709,7 @@ class PlayState extends MusicBeatState
|
|||||||
ready.destroy();
|
ready.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
FlxG.sound.play('assets/sounds/intro2' + TitleState.soundExt, 0.6);
|
FlxG.sound.play('assets/sounds/intro2' + altSuffix + TitleState.soundExt, 0.6);
|
||||||
case 2:
|
case 2:
|
||||||
var set:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[1]);
|
var set:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[1]);
|
||||||
set.scrollFactor.set();
|
set.scrollFactor.set();
|
||||||
@ -722,7 +726,7 @@ class PlayState extends MusicBeatState
|
|||||||
set.destroy();
|
set.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
FlxG.sound.play('assets/sounds/intro1' + TitleState.soundExt, 0.6);
|
FlxG.sound.play('assets/sounds/intro1' + altSuffix + TitleState.soundExt, 0.6);
|
||||||
case 3:
|
case 3:
|
||||||
var go:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[2]);
|
var go:FlxSprite = new FlxSprite().loadGraphic('assets/images/' + introAlts[2]);
|
||||||
go.scrollFactor.set();
|
go.scrollFactor.set();
|
||||||
@ -741,7 +745,7 @@ class PlayState extends MusicBeatState
|
|||||||
go.destroy();
|
go.destroy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
FlxG.sound.play('assets/sounds/introGo' + TitleState.soundExt, 0.6);
|
FlxG.sound.play('assets/sounds/introGo' + altSuffix + TitleState.soundExt, 0.6);
|
||||||
case 4:
|
case 4:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user