Skip to content
Browse files

Added end game and summary screen sounds

  • Loading branch information...
1 parent d6fe43b commit 3860bb57ff38f28904f862db6f8d75bfec6df25d @Chillidan Chillidan committed Jan 29, 2012
View
BIN assets/Audio_CreateTree.mp3
Binary file not shown.
View
BIN assets/Audio_EndScreen.mp3
Binary file not shown.
View
BIN assets/Audio_SummaryScreen.mp3
Binary file not shown.
View
4 src/EndGameState.as
@@ -4,7 +4,8 @@ package
public class EndGameState extends FlxState
{
- [Embed(source="../assets/summaryBackground.png")] private static var ImgBackground:Class;
+ [Embed(source = "../assets/summaryBackground.png")] private static var ImgBackground:Class;
+ [Embed(source = "../assets/Audio_EndScreen.mp3")] private var endSound:Class;
private var currentLevel:Number=0;
private var statsTracker : StatsTracker;
@@ -74,6 +75,7 @@ package
add(t);
FlxG.mouse.hide();
+ FlxG.play(endSound);
}
override public function update():void
View
2 src/IntroMovieState.as
@@ -11,7 +11,7 @@ package
public class IntroMovieState extends FlxState
{
//----------------------------------------------------------------------
- [Embed(source = './assets/frontend_titlesplash.swf')] private var SwfClass:Class;
+ [Embed(source = '../assets/frontend_titlesplash.swf')] private var SwfClass:Class;
//----------------------------------------------------------------------
protected var m_swf : MovieClip = null;
private var timer : Number = 0;
View
4 src/SummaryState.as
@@ -4,7 +4,8 @@ package
public class SummaryState extends FlxState
{
- [Embed(source="../assets/summaryBackground.png")] private static var ImgBackground:Class;
+ [Embed(source = "../assets/summaryBackground.png")] private static var ImgBackground:Class;
+ [Embed(source = "../assets/Audio_SummaryScreen.mp3")] private var summarySound:Class;
private var currentLevel:Number=0;
private var statsTracker : StatsTracker;
@@ -75,6 +76,7 @@ package
add(t);
FlxG.mouse.hide();
+ FlxG.play(summarySound);
}
override public function update():void

0 comments on commit 3860bb5

Please sign in to comment.
Something went wrong with that request. Please try again.