Commits

Anonymous committed defe785

fallback release done

  • Participants
  • Parent commits fcc8d93

Comments (0)

Files changed (3)

 		[Embed(source = 'data/spawn.mp3')]
 		public static const SndSpawn:Class;
 		
+		[Embed(source = 'data/bgm.mp3')]
+		public static const SndBgm:Class;
+		
 		public static var levelArr:Array = [
 			Level0,
-//			Fan, // most easy
-//			Hole,
-//			Hexagon,
-//			Bounce,
-//			VStripe,
-//			Xlash,
-//			CornerFan,
-//			Stripe,
-//			Grid,
+			Fan, // most easy
+			Hole,
+			Hexagon,
+			Bounce,
+			VStripe,
+			Xlash,
+			CornerFan,
+			Stripe,
+			Grid,
 		];
 		
 		
 		private var _text:Entity;
 		private var _playsfx:Sfx;
 		private var _spawnsfx:Sfx;
+		private var _bgmsfx:Sfx;
 		
 		private var _phase:int;
 		private var _framecnt:int;
 			_textcnter = 0;
 			_playsfx = new Sfx(Au.SndPlay);
 			_spawnsfx = new Sfx(Au.SndSpawn);
+			_bgmsfx = new Sfx(Au.SndBgm);
 			
 			add(_bgplain);
 			add(_bgstripe);
 			_levelix = 0;
 			switchLevel(new (Au.levelArr[_levelix]));
 			switchPhase(INDI_PHASE);
+			_bgmsfx.play();
 			
 			// debugs
 			//switchLevel(new Grid);
 				}
 			} else if (_phase == WAIT_PHASE) {
 				if (_framecnt == Au.WAIT_TIME) {
-					_playsfx.play();
+					//_playsfx.play();
 					switchPhase(PLAY_PHASE);
 				}
 			} else if (_phase == PLAY_PHASE) {
 							return; // to bypass switchPhase
 						}
 					}
+					_bgmsfx.stop();
+					_bgmsfx.play();
 					switchPhase(INDI_PHASE);
 				}
 			} else if (_phase == GAME_OVER) {
 
 	public class RMGrid extends LevelBase
 	{
+		public function RMGrid()
+		{
+			waves = 3;
+		}
 		override public function leveldata(wave:int):Vector.<Obj> 
 		{
 			var remove:Array = [