mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-10 22:28:12 +00:00
Introbizz
This commit is contained in:
parent
2a9814e030
commit
6dca858fd7
|
@ -20,8 +20,6 @@ class IntroSubState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
static final ATTRACT_VIDEO_PATH:String = Paths.stripLibrary(Paths.videos('introSelect'));
|
static final ATTRACT_VIDEO_PATH:String = Paths.stripLibrary(Paths.videos('introSelect'));
|
||||||
|
|
||||||
var introSound:FunkinSound = null;
|
|
||||||
|
|
||||||
public override function create():Void
|
public override function create():Void
|
||||||
{
|
{
|
||||||
// Pause existing music.
|
// Pause existing music.
|
||||||
|
@ -40,15 +38,6 @@ class IntroSubState extends MusicBeatSubState
|
||||||
trace('Playing native video ${ATTRACT_VIDEO_PATH}');
|
trace('Playing native video ${ATTRACT_VIDEO_PATH}');
|
||||||
playVideoNative(ATTRACT_VIDEO_PATH);
|
playVideoNative(ATTRACT_VIDEO_PATH);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
introSound = new FunkinSound();
|
|
||||||
introSound.loadEmbedded(Paths.sound('CS_Lights'));
|
|
||||||
introSound.pitch = 1;
|
|
||||||
|
|
||||||
FlxG.sound.defaultSoundGroup.add(introSound);
|
|
||||||
FlxG.sound.list.add(introSound);
|
|
||||||
|
|
||||||
introSound.play(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if html5
|
#if html5
|
||||||
|
|
Loading…
Reference in a new issue