private void IncrementDance() { selectedDanceNum++; switch (selectedDanceNum % 3) { case 1: selectedDance = dance1; break; case 2: selectedDance = dance2; break; case 0: selectedDance = dance3; break; default: selectedDance = dance1; break; } if(videoPlayer2 != null) videoPlayer2.Dispose(); loopTime.Reset(); loopTime.Start(); GLOBALS.PLAYER_ONE_ACTIVE = true; GLOBALS.PLAYER_TWO_ACTIVE = true; gameState = (int)GameState.HOWTOPLAY; }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { font = Content.Load<SpriteFont>("myFont"); resultFont = Content.Load<SpriteFont>("resultFont"); howtoplay = Content.Load<Texture2D>("Textures\\instructions"); kinectDepthVisualizer = Content.Load<Effect>("KinectDepthVisualizer"); // Create and load all the dance step icons spriteBatch = new SpriteBatch(GraphicsDevice); Services.AddService(typeof(SpriteBatch), spriteBatch); jointTexture = Content.Load<Texture2D>("Textures\\joint"); shadowTexture = Content.Load<Texture2D>("Textures\\shadow"); backgroundDabke = Content.Load<Texture2D>("Textures\\backgroundDabke"); scoreBackground = Content.Load<Texture2D>("Textures\\scoreBackground"); continueBackground = Content.Load<Texture2D>("Textures\\continueBackground"); StepHomeOFF = Content.Load<Texture2D>("Textures\\dsteps1OFF"); StepCrossOFF = Content.Load<Texture2D>("Textures\\dsteps2OFF"); StepKickOFF = Content.Load<Texture2D>("Textures\\dsteps3OFF"); //All dance sprites /* female_BackSpinRightKneeLift = Content.Load<Texture2D>("Sprites\\female_BackSpinRightKneeLift"); female_crossover = Content.Load<Texture2D>("Sprites\\female_crossover"); female_Crouch_HipShake = Content.Load<Texture2D>("Sprites\\female_Crouch_HipShake"); female_Crouch_HipSwivel = Content.Load<Texture2D>("Sprites\\female_Crouch_HipSwivel"); female_ElbowSway = Content.Load<Texture2D>("Sprites\\female_ElbowSway"); female_HandSwingBack = Content.Load<Texture2D>("Sprites\\female_HandSwingBack"); female_HandSwingFront = Content.Load<Texture2D>("Sprites\\female_HandSwingFront"); female_HandSwingLeft = Content.Load<Texture2D>("Sprites\\female_HandSwingLeft"); female_HandSwingRight = Content.Load<Texture2D>("Sprites\\female_HandSwingRight"); female_HipShakeBack = Content.Load<Texture2D>("Sprites\\female_HipShakeBack"); female_HipShakeFront = Content.Load<Texture2D>("Sprites\\female_HipShakeFront"); female_Home = Content.Load<Texture2D>("Sprites\\female_Home"); female_LeftBendHipShake = Content.Load<Texture2D>("Sprites\\female_LeftBendHipShake"); female_LeftKneeBendCrouch_Left = Content.Load<Texture2D>("Sprites\\female_LeftKneeBendCrouch_Left"); female_LeftKneeBendCrouch_Right = Content.Load<Texture2D>("Sprites\\female_LeftKneeBendCrouch_Right"); female_LeftKneeKick = Content.Load<Texture2D>("Sprites\\female_LeftKneeKick"); female_LeftKneeLift = Content.Load<Texture2D>("Sprites\\female_LeftKneeLift"); female_LeftKneeLift_FaceLeft = Content.Load<Texture2D>("Sprites\\female_LeftKneeLift_FaceLeft"); female_LeftKneeLift_FrontTorso = Content.Load<Texture2D>("Sprites\\female_LeftKneeLift_FrontTorso"); female_RightHandHigh = Content.Load<Texture2D>("Sprites\\female_RightHandHigh"); female_rightKneeKick = Content.Load<Texture2D>("Sprites\\female_rightKneeKick"); female_RightKneeLift = Content.Load<Texture2D>("Sprites\\female_RightKneeLift"); female_RightKneeLift_FaceLeft = Content.Load<Texture2D>("Sprites\\female_RightKneeLift_FaceLeft"); female_ScrollingHands_Left = Content.Load<Texture2D>("Sprites\\female_ScrollingHands_Left"); female_ScrollingHands_Right = Content.Load<Texture2D>("Sprites\\female_ScrollingHands_Right"); female_ThrillerhandsLeft = Content.Load<Texture2D>("Sprites\\female_ThrillerhandsLeft"); female_WristArcRaise_Left = Content.Load<Texture2D>("Sprites\\female_WristArcRaise_Left"); female_WristArcRaise_Right = Content.Load<Texture2D>("Sprites\\female_WristArcRaise_Right"); male_crossover = Content.Load<Texture2D>("Sprites\\male_crossover"); male_KneelandClap = Content.Load<Texture2D>("Sprites\\male_KneelandClap"); male_LeftHandToFace_Spin = Content.Load<Texture2D>("Sprites\\male_LeftHandToFace_Spin"); male_LeftKneeBendCrouch_Left = Content.Load<Texture2D>("Sprites\\male_LeftKneeBendCrouch_Left"); male_LeftKneeBendCrouch_Right = Content.Load<Texture2D>("Sprites\\male_LeftKneeBendCrouch_Right"); male_LeftKneeCross = Content.Load<Texture2D>("Sprites\\male_LeftKneeCross"); male_LeftKneeKick = Content.Load<Texture2D>("Sprites\\male_LeftKneeKick"); male_LeftKneeLift = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift"); male_LeftKneeLift_FaceBack = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_FaceBack"); male_LeftKneeLift_FaceLeft = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_FaceLeft"); male_LeftKneeLift_FaceRight = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_FaceRight"); male_LeftKneeLift_FrontTorso = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_FrontTorso"); male_LeftKneeLift_FrontTorso_LeftHand = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_FrontTorso_LeftHand"); male_LeftKneeLift_LeftHand = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_LeftHand"); male_LeftKneeLift_UnderArm = Content.Load<Texture2D>("Sprites\\male_LeftKneeLift_UnderArm"); male_RightKneeCross = Content.Load<Texture2D>("Sprites\\male_RightKneeCross"); male_rightKneeKick = Content.Load<Texture2D>("Sprites\\male_rightKneeKick"); male_RightKneeKick_UnderArm = Content.Load<Texture2D>("Sprites\\male_RightKneeKick_UnderArm"); male_RightKneeKneel_UnderArm = Content.Load<Texture2D>("Sprites\\male_RightKneeKneel_UnderArm"); male_RightKneeKneel_UnderArm_HandBehind = Content.Load<Texture2D>("Sprites\\male_RightKneeKneel_UnderArm_HandBehind"); male_rightKneeLift = Content.Load<Texture2D>("Sprites\\male_rightKneeLift"); male_RightKneeLift_FaceRight = Content.Load<Texture2D>("Sprites\\male_RightKneeLift_FaceRight"); male_RightKneeLift_LeftHand = Content.Load<Texture2D>("Sprites\\male_RightKneeLift_LeftHand"); male_shrug = Content.Load<Texture2D>("Sprites\\male_shrug"); male_WaiterHand = Content.Load<Texture2D>("Sprites\\male_WaiterHand"); */ n_MoveTarget = Content.Load<Texture2D>("Sprites\\n_MoveTarget"); n_P1icon = Content.Load<Texture2D>("Textures\\lefthandraise"); n_P2icon = Content.Load<Texture2D>("Textures\\righthandraise"); song = Content.Load<Song>("Music\\dabke"); //MediaPlayer.Play(song); dance1.LoadContent(Content); dance2.LoadContent(Content); dance3.LoadContent(Content); video = Content.Load<Video>("Video\\tempIntro"); video1 = Content.Load<Video>("Video\\Lebanon"); videoPlayer = new VideoPlayer(); videoPlayer.Play(video1); introVideoTime.Start(); videoPlayer.IsLooped = true; switch (selectedDanceNum % 3) { case 1: selectedDance = dance1; break; case 2: selectedDance = dance2; break; case 0: selectedDance = dance3; break; default: selectedDance = dance1; break; } gameEnd = selectedDance.GetMovie().Duration; }