public IntroScreen() { XactManager.CurrentSong.Stop(AudioStopOptions.Immediate); intro = MainGame.GetInstance().Content.Load<Video>("Video\\Introduction"); videoPlayer = new VideoPlayer(); videoPlayer.Play(intro); }
public override void LoadContent(ContentManager _content) { base.LoadContent(_content); video = LevelDataManager.tempContent.Load<Video>(@"Video\endwithtomato2"); player = new VideoPlayer(); player.Play(video); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); Services.AddService(typeof(SpriteBatch), spriteBatch); video = Content.Load<Video>("Video\\Intro"); videoplayer = new VideoPlayer(); videoplayer.Play(video); }
public void Initialize() { video = GLOBAL.game1.Content.Load<Video>("Demo"); videoPlayer = new VideoPlayer(); videoPlayer.IsLooped = true; videoPlayer.IsMuted = false; videoPlayer.Play(video); flag_exit = false; }
public override void LoadContent() { video = ScreenManager.Game.Content.Load<Video>("Video\\splash"); videoPlayer = new VideoPlayer(); videoPlayer.IsLooped = false; if (videoPlayer.State != MediaState.Playing) videoPlayer.Play(video); }
public override void LoadContent() { base.LoadContent(); font = content.Load<SpriteFont>("Fonts/Test"); video = content.Load<Video>("resurgam"); vidP = new VideoPlayer(); vidP.Play(video); vidP.IsMuted = false; }
public Controller() : base() { IntroVideo = Game1.ContentLoader.Load<Video>("Video/JenStory"); Player = new VideoPlayer(); Player.Play(IntroVideo); Player.IsLooped = false; Player.Volume = Game1.GlobalVolume; }
public override void Activate() { base.Activate(); videoPlayer = new VideoPlayer(); logoVideo = V2DGame.instance.Content.Load<Video>(@"DDWLogoMovie"); videoPlayer.Play(logoVideo); started = true; }
protected override void PlayNativeVideo(float volume) { positionInSeconds = 0.0f; player.Volume = volume; player.Play(video); var shader = ContentLoader.Create <Shader>(new ShaderCreationData(ShaderFlags.Position2DTextured)); surface = new Sprite(new Material(shader, image), ScreenSpace.Current.Viewport); }
public override void Activate() { base.Activate(); videoPlayer = new VideoPlayer(); video = V2DGame.instance.Content.Load<Video>(videoName); videoRect = new Rectangle((int)videoHolder.X, (int)videoHolder.Y, video.Width, video.Height); videoPlayer.Play(video); started = true; }
public override void LoadContent() { if (content == null) content = new ContentManager(ScreenManager.Game.Services, "Content"); _video = content.Load<Video>("Mangala"); _videoPlayer = new VideoPlayer(); _videoPlayer.Play(_video); ScreenManager.Game.ResetElapsedTime(); }
public override void start() { video = Game1.Self.Content.Load<Video>("VideoIntro"); videoPlayer = new VideoPlayer(); videoPlayer.Play(video); layer = new Objeto2D(videoPlayer.GetTexture()); layer.position.X = Game1.Self.Window.ClientBounds.Width / 2; layer.position.Y = Game1.Self.Window.ClientBounds.Height / 2; if (SoundManager.isEffectsMuted) videoPlayer.Volume = 0; }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { // TODO: Add your update logic here if (playVideo) { if (videoPlayer.State == MediaState.Stopped) { videoPlayer.Play(video); playVideo = false; } } base.Update(gameTime); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // Load status, author and menu fonts. statusText = Content.Load<SpriteFont>("statusFont"); authorText = Content.Load<SpriteFont>("authorFont"); // Initialize videos and video player. foreach (string v in videos) { p_video.Add(Content.Load<Video>(v)); } player = new VideoPlayer(); player.IsLooped = true; player.Play(p_video[selected]); }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { Exit(); } // TODO: Add your update logic here if (playVideo) { if (videoPlayer.State == MediaState.Stopped) { videoPlayer.Play(video); playVideo = false; } } base.Update(gameTime); }
public override void LoadContent(ContentManager Content, InputManager inputManager) { base.LoadContent(Content, inputManager); font = this.content.Load<SpriteFont>("CreditsScreen/Coolvetica Rg"); gui = new GUIManager(); gui.LoadContent(Content, "Credits"); audio = new AudioManager(); audio.LoadContent(Content, "Credits"); dul = false; fileManager = new FileManager(); fileManager.LoadContent("Load/Credits.txt"); for (int i = 0; i < fileManager.Attributes.Count; i++) { for (int j = 0; j < fileManager.Attributes[i].Count; j++) { switch (fileManager.Attributes[i][j]) { case "Videos" : video = this.content.Load<Video>(fileManager.Contents[i][j]); videoPlayer = new VideoPlayer(); videoPlayer.Play(video); videoPlayer.IsLooped = true; videoPlayer.Pause(); break; } } } audio.PlaySong(0, true); audio.FadeSong(1.0f, new TimeSpan(0, 0, 0, 1)); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); spriteFont = Content.Load<SpriteFont>("SpriteFont"); filler = Content.Load<Texture2D>("filler"); logo = Content.Load<Texture2D>("Menu/logo"); back = Content.Load<Texture2D>("Menu/back"); backHover = Content.Load<Texture2D>("Menu/back_h"); backRectangle = new Rectangle(10, Game.graphics.PreferredBackBufferHeight - back.Height - 20, back.Width, back.Height); lobbySong = Content.Load<Song>("Menu/lobby"); MediaPlayer.Play(lobbySong); if (Convert.ToBoolean(Settings.GetKey("Sound")) == false) MediaPlayer.Pause(); player = new VideoPlayer(); player.IsMuted = true; video = Content.Load<Video>("Menu/background"); player.Play(video); player.IsLooped = true; }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Load lens shader LensEffect = Content.Load<Effect>("Lens"); LensEffect.CurrentTechnique = LensEffect.Techniques["Technique1"]; // Load zoom circle image for touch-only interaction ZoomCircle.ZoomCircleImage = Content.Load<Texture2D>("ZoomCircle"); // Load question button questionButton = Content.Load<Texture2D>("Question_button"); // Load hourglass icon hourglassIcon = Content.Load<Texture2D>("hourglass"); // Load thermometer icon tempIcon = Content.Load<Texture2D>("thermometer"); // Load callouts for (int i = 0; i < 5; i++) { guideImagesLeft[i] = Content.Load<Texture2D>("Guide" + i + "L"); } for (int i = 0; i < 5; i++) { guideImagesRight[i] = Content.Load<Texture2D>("Guide" + i + "R"); } // Load callout tabs CloseTabLeftImage = Content.Load<Texture2D>("GuideCloseTabLeft"); CloseTabRightImage = Content.Load<Texture2D>("GuideCloseTabRight"); OpenTabLeftImage = Content.Load<Texture2D>("GuideOpenTabLeft"); OpenTabRightImage = Content.Load<Texture2D>("GuideOpenTabRight"); // Load readout icons readoutImages = new Dictionary<string, Texture2D[]>(); readoutImages["T"] = new Texture2D[2]; readoutImages["T"][0] = Content.Load<Texture2D>("Temperature_empty"); readoutImages["T"][1] = Content.Load<Texture2D>("Temperature_fill"); readoutImages["SiO2"] = new Texture2D[2]; readoutImages["SiO2"][0] = Content.Load<Texture2D>("Silica_empty"); readoutImages["SiO2"][1] = Content.Load<Texture2D>("Silica_fill"); readoutImages["NO3"] = new Texture2D[2]; readoutImages["NO3"][0] = Content.Load<Texture2D>("Nitrogen_empty"); readoutImages["NO3"][1] = Content.Load<Texture2D>("Nitrogen_fill"); readoutImages["PAR"] = new Texture2D[2]; readoutImages["PAR"][0] = Content.Load<Texture2D>("Sunlight_empty"); readoutImages["PAR"][1] = Content.Load<Texture2D>("Sunlight_fill"); // Load plankton textures planktonImages[0] = new Texture2D[1]; planktonImages[0][0] = Content.Load<Texture2D>("prochlorococcus"); // PhyGrp1 planktonImages[1] = new Texture2D[1]; planktonImages[1][0] = Content.Load<Texture2D>("synechococcus"); // PhyGrp3 planktonImages[2] = new Texture2D[2]; planktonImages[2][0] = Content.Load<Texture2D>("Dinoflagellate1"); // PhyGrp4 planktonImages[2][1] = Content.Load<Texture2D>("Dinoflagellate2"); // planktonImages[2,2] = Content.Load<Texture2D>("Dinoflagellate3"); // This is actually a diatom, don't use for now planktonImages[3] = new Texture2D[3]; planktonImages[3][0] = Content.Load<Texture2D>("Diatom1"); // PhyGrp5 planktonImages[3][1] = Content.Load<Texture2D>("Diatom2"); planktonImages[3][2] = Content.Load<Texture2D>("Diatom3"); //planktonImages[3,3] = Content.Load<Texture2D>("Dinoflagellate3"); // This is actually a diatom, don't use for now // Load continent textures continentsImage = Content.Load<Texture2D>("Continents02"); // Load fonts smallFont = Content.Load<SpriteFont>("Explo16"); mediumFont = Content.Load<SpriteFont>("Explo20"); largeFont = Content.Load<SpriteFont>("Explo32"); extraLargeFont = Content.Load<SpriteFont>("Explo48"); // Load movie images into the texture collection //movieFrames = new Texture2D[1000]; //for (int i = 1; i <= 1000; i++) //{ // movieFrames[i - 1] = Content.Load<Texture2D>(i.ToString("D4")); //} // Create the mask texture CreateMaskTexture(); // Load movie file if (Settings.MOVIE_BLUE_WATER) { if (Settings.MOVIE_BLUE_WATER_SATURATED) video = Content.Load<Video>("overviewMovieBlueSaturated"); else video = Content.Load<Video>("overviewMovieBlue"); } else { if (Settings.MOVIE_SLOWER) video = Content.Load<Video>("overviewMovieSlow"); else video = Content.Load<Video>("overviewMovieFast"); } videoPlayer = new VideoPlayer(); videoPlayer.IsLooped = true; videoPlayer.Play(video); // Initialize timeline this.timeline = new Timeline(GraphicsDevice, video, videoPlayer); //this.GraphicsDevice.SamplerStates[0] = SamplerState.PointClamp; }
protected override void LoadContent() { DrawBatch = new SpriteBatch(GraphicsDevice); GhostGame = new ChangedStage(Content, DrawBatch); FPSFont = Content.Load<SpriteFont>("Data\\Font\\GhostFont"); // Mouse Graphic MousePointer = Content.Load<Texture2D>("Data\\Pointer"); MouseImage = Content.Load<Texture2D>("Data\\Cursor"); // LoadContent Graphic MainMenuFont = Content.Load<SpriteFont>("Data\\Font\\PreloadFont"); lv0Ground = Content.Load<Texture2D>("Data\\Ground-Level0"); lv1Ground = Content.Load<Texture2D>("Data\\Ground-Level1"); // Preview Video Player VideoLogo = Content.Load<Video>("Data\\Media\\Logo-PkAtPay"); TitlePlayer = new VideoPlayer(); TitlePlayer.IsLooped = false; TitlePlayer.Play(VideoLogo); // TODO: use this.Content to load your game content here PreContent.WorkerReportsProgress = true; PreContent.DoWork += new DoWorkEventHandler(InitializeMenu); PreContent.ProgressChanged += new ProgressChangedEventHandler(PreloadAppChanged); PreContent.RunWorkerCompleted += new RunWorkerCompletedEventHandler(PreloadAppCompleted); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); titleVideo = Content.Load<Video>("start_menu"); loadingVideo = Content.Load<Video>("loading_movie"); vPlayer = new VideoPlayer(); vPlayer.IsLooped = true; vPlayer.Play(titleVideo); normalText = Content.Load<SpriteFont>("NormalText"); myStartText = Content.Load<SpriteFont>("Impact"); bottomPoint = new Vector2(0, GraphicsDevice.Viewport.Height - 20); myBlankTexture = new Texture2D(GraphicsDevice, 1, 1); myBlankTexture.SetData(new[] { Color.White }); }
public void LoadContent(ContentManager content) { videoallumage = content.Load<Video>("Composition"); player = new VideoPlayer(); player.Play(videoallumage); }
protected override void Initialize() { // Create a new SpriteBatch, which can be used to draw textures. SpriteBatch = new SpriteBatch(GraphicsDevice); // device = graphics.GraphicsDevice; ScreenWidth = graphics.PreferredBackBufferWidth; ScreenHeight = graphics.PreferredBackBufferHeight; video = Content.Load<Video>("media/IntroVideo"); videoPlayer = new VideoPlayer(); videoPlayer.Play(video); videoColor = new Color(255, 255, 255); base.Initialize(); }
protected override void LoadContent() { if (_content == null) _content = new ContentManager(SceneManager.Game.Services, "Content"); video = _content.Load<Video>("game_over_v3.0"); player = new VideoPlayer(); player.IsLooped = false; player.Play(video); }
void InitVideoComponents(string userVideo, bool loop) { videoKey = userVideo; myVideo = ResourceGetVideo(userVideo); myPlayer = new VideoPlayer(); myPlayer.Play(myVideo); myPlayer.IsLooped = loop; startLoop = loop; }
public override void LoadContent() { cameraManager = (CameraManager)ScreenManager.Game.Services.GetService(typeof(CameraManager)); numTiles = new Vector2(22, 16); SetupCamera(); background = ScreenManager.Game.Content.Load<Texture2D>("water_tiled"); background = ScreenManager.Game.Content.Load<Texture2D>("PlayScreen\\oceanWaveBackground"); playerBackground = ScreenManager.Game.Content.Load<Texture2D>("PlayerMenu\\player_bg"); playerBackgroundColor = new Color(255, 255, 255, 200); playerBackgroundLocation = new Vector2(40.0f, 0.0f); font = ScreenManager.Game.Content.Load<SpriteFont>("font"); dimensions = new Vector2((float)ScreenManager.GraphicsDeviceManager.GraphicsDevice.Viewport.Width, (float)ScreenManager.GraphicsDeviceManager.GraphicsDevice.Viewport.Height); UnitCollection.Initialize(5); TowerCollection.Initialize(5); BaseCollection.Initialize(); PlayerCollection.Initialize(); ProjectileManager.Initialize(); PowerManager.Initialize(); if (GameType == PlayerScreenType.Scenario) { ScenarioManager.Initialize(); } backgroundSong = ScreenManager.Game.Content.Load<Song>("Sounds\\Backgrounds\\multiplayer"); //TileMap.InitializeTileMap(Vector3.Zero, numTiles, new Vector2(100f, 100f)); //PlayerCollection.Initialize(playerTypes); //FIX THIS!!! assign players their tiles AFTER level manager is loaded... //Right now TileMap is being initialized TWICE!!! //p1 = new Player(1, 1, 2, TileMap.Tiles[0], PlayerType.Human); //aI = new Player(2, 2, 1, TileMap.Tiles[TileMap.Tiles.Count - 1], PlayerType.AI); LevelManager.Initialize(); LevelManager.CreateLevel(numTiles, playerSetup); /*LevelManager.AddPlayer(p1); LevelManager.AddPlayer(aI);*/ //LevelManager.LoadLevel(1); //Start Thread TileMap.pathThread.Start(); ProjectileManager.particleThread.Start(); if (MediaPlayer.State == MediaState.Stopped) { MediaPlayer.Play(backgroundSong); MediaPlayer.Volume = 0.1f; MediaPlayer.IsRepeating = true; } videoPlayer = new VideoPlayer(); video = ScreenManager.Game.Content.Load<Video>("Video\\oceanView"); if (videoPlayer.State != MediaState.Playing) { videoPlayer.Play(video); videoPlayer.IsLooped = true; } GC.Collect();//force garbage collection isLoaded = true; }
public override void LoadContent(ContentManager _content) { base.LoadContent(_content); TransitionOnTime = TimeSpan.FromSeconds(0f); TransitionOffTime = TimeSpan.FromSeconds(0f); LevelDataManager.UItextures.TryGetValue("Title", out menuTitleGraphic); isMenuTitleGraphic = true; menuTitleGraphicScale = 1.0f; textLength = ScreenManager.font.MeasureString(text) * textscale; video = LevelDataManager.tempContent.Load<Video>(@"Video\pw_intro2"); player = new VideoPlayer(); player.Play(video); // we can set our supported languages explicitly or we can allow the // game to support all the languages. the first language given will // be the default if the current language is not one of the supported // languages. this only affects the text found in message boxes shown // by EasyStorage and does not have any affect on the rest of the game. EasyStorageSettings.SetSupportedLanguages(Language.English, Language.French, Language.Spanish, Language.German, Language.Italian, Language.Japanese); // on Windows and Xbox 360, we use a save device that gets a //shared StorageDevice to handle our file IO. // create and add our SaveDevice sharedSaveDevice = new SharedSaveDevice(); ScreenManager.Game.Components.Add(sharedSaveDevice); // make sure we hold on to the device saveDevice = sharedSaveDevice; LevelDataManager.SaveDevice = saveDevice; // hook two event handlers to force the user to choose a new device if they cancel the // device selector or if they disconnect the storage device after selecting it sharedSaveDevice.DeviceSelectorCanceled += (s, e) => e.Response = SaveDeviceEventResponse.Force; sharedSaveDevice.DeviceDisconnected += (s, e) => e.Response = SaveDeviceEventResponse.Force; #if XBOX // add the GamerServicesComponent ScreenManager.Game.Components.Add( new Microsoft.Xna.Framework.GamerServices.GamerServicesComponent(ScreenManager.Game)); #endif sharedSaveDevice.DeviceSelected += (s, e) => { LoadOptions(); LevelDataManager.ReadSaveGameData(); isPrompt = true; }; }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Update(GameTime gameTime) { if (bWantsToQuit) Exit(); // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape) || Keyboard.GetState().IsKeyDown(Keys.Q)) { bWantsToQuit = true; GLOBALS.writer.Close(); #if USE_KINECT kinect.Dispose(); #endif } // Press spacebar to advance your current dance steps without actually dancing. // Helpful for testing, making videos, ect... if (Keyboard.GetState().IsKeyDown(Keys.Space)) { if (!bSpaceKeyPressed) { if(gameState == (int)GameState.ATTRACT) { // SPACEBAR stops the intro video, if it is playing... //malePlaying = true; //generic man playing videoPlayer.Dispose(); IncrementDance(); } else if (gameState == (int)GameState.CONTINUE) { IncrementDance(); } else { // Otherwise, SPACEBAR is our developer shortcut for getting the current time int currentTime = (int)videoTime.ElapsedMilliseconds; Debug.WriteLine("\nCurrent time in seconds:" + currentTime + "\n"); bSpaceKeyPressed = true; } } } else bSpaceKeyPressed = false; if (gameState == (int)GameState.HOWTOPLAY) { if (restartGameLoop.CompareTo(loopTime.Elapsed) < 0 || Keyboard.GetState().IsKeyDown(Keys.A)) //when to start the video { videoPlayer2 = new VideoPlayer(); videoPlayer2.Play(selectedDance.GetMovie()); gameState = (int)GameState.DANCE; setTime(); loopTime.Reset(); videoTime.Start(); } } if (gameState == (int)GameState.DANCE) { //easy dance editing if (Keyboard.GetState().IsKeyDown(Keys.Enter)) { if (!keydown) { keydown = true; TimeSpan now = videoTime.Elapsed; GLOBALS.writer.WriteLine("Gender, MoveName, " + now.Days + "," + now.Hours + "," + now.Minutes + "," + now.Seconds + "," + now.Milliseconds); } } else { keydown = false; } if (Keyboard.GetState().IsKeyDown(Keys.Left) || Keyboard.GetState().IsKeyDown(Keys.Right)) { if (!bCrossoverKeyPressed) { bCrossoverKeyPressed = true; } } else { bCrossoverKeyPressed = false; } if (Keyboard.GetState().IsKeyDown(Keys.Down)) { if (!bHomeKeyPressed) { bHomeKeyPressed = true; } } else { bHomeKeyPressed = false; } if (Keyboard.GetState().IsKeyDown(Keys.Up)) { if (!bKickKeyPressed) { bKickKeyPressed = true; } } else { bKickKeyPressed = false; } //crappy testing thing int newPts = 0; newPts = selectedDance.ScoreMovesFake(videoTime.Elapsed); if (newPts > 0) { tempStepsDone++; tempScore += newPts; } //score blocks (requires no kinect) if (selectedDance.ScoreBlockFake(videoTime.Elapsed)) { scorePlayer(); scorePlayerF(); } /*Check each step to see if it is hit*/ if (false) { #region old step checking code if (LeftKneeLift1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift2 = stepFinished; stepsDone++; tempStepsDone++; } //Fem scores if (FemLeftKneeLift1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeLift1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeLift1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeLift2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeLift2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeLift2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (introScore.Subtract(videoTime.Elapsed).Milliseconds < 0) { introScore = stepFinished; //scorePlayer(); scorePlayerF(); } /*Finish checking steps for the intro*/ //Score for block 2 if (LeftKneeLift3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift3 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift3 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndFrontTorso1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorso1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndBackTorso1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndBackTorso1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift4 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift4 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndFrontTorso2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorso2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndBackTorso2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndBackTorso2 = stepFinished; stepsDone++; tempStepsDone++; } //Fem times if (FemLeftKneeLift3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeLift3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeLift3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftFootLiftAndFrontTorso1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftFootLiftAndFrontTorso1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootLiftAndBackTorso1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootLiftAndBackTorso1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeLift4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeLift4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeLift4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftFootLiftAndFrontTorso2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftFootLiftAndFrontTorso2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootLiftAndBackTorso2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootLiftAndBackTorso2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score2.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score2 = stepFinished; //scorePlayer(); scorePlayerF(); } //Done with score block 2 //Start score block 3 if (LeftKneeLiftAndLeftHand1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndLeftHand1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndLeftHand1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndLeftHand1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndFrontTorsoAndLeftHand1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorsoAndLeftHand1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndLeftHand1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndLeftHand1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndBackTorsoAndLeftHand1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndBackTorsoAndLeftHand1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndLeftHand2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndLeftHand2 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndFrontTorsoAndLeftHand2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorsoAndLeftHand2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndBackTorsoAndLeftHand2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndBackTorsoAndLeftHand2 = stepFinished; stepsDone++; tempStepsDone++; } //Fem scores block 3 if (FemHandSwingFront1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingFront1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingRight1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingRight1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHipShakeBack1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHipShakeBack1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingBack1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingBack1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingLeft1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingLeft1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHipShakeFront1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHipShakeFront1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score3.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score3 = stepFinished; //scorePlayer(); scorePlayerF(); } //Done with score block 3 //Start score block 4 if (KneelDownsAndClap.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { KneelDownsAndClap = stepFinished; stepsDone++; tempStepsDone++; } //Fem scores block 4 if (FemHandSwingFront2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingFront2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingRight2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingRight2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHipShakeBack2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHipShakeBack2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingBack2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingBack2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHandSwingLeft2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHandSwingLeft2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHipShakeFront2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHipShakeFront2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score4.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score4 = stepFinished; //scorePlayer(); scorePlayerF(); } //End score block 4 //Start score block 5 if (LeftKneeLift5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift5 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift5 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift6 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift6 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift7 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift7 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift8 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift8 = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 5 if (FemMoveToRightAndScrollingHands1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToRightAndScrollingHands1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToRightAndScrollingHands2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToRightAndScrollingHands2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemCrouchAndHipShake1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemCrouchAndHipShake1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToLeftAndScrollingHands1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToLeftAndScrollingHands1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToLeftAndScrollingHands2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToLeftAndScrollingHands2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemCrouchAndHipShake2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemCrouchAndHipShake2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score5.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score5 = stepFinished; //scorePlayer(); scorePlayerF(); } //End score block 5 //Start score block 6 if (MoveToRightAndWaiterHand.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { MoveToRightAndWaiterHand = stepFinished; stepsDone++; tempStepsDone++; } if (ShrugShoulders.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { ShrugShoulders = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift9 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift9 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift10 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift10 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch0B.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch0B = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch0A.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch0A = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 6 if (FemMoveToRightAndScrollingHands3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToRightAndScrollingHands3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToRightAndScrollingHands4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToRightAndScrollingHands4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemCrouchAndHipShake3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemCrouchAndHipShake3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToLeftAndScrollingHands3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToLeftAndScrollingHands3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemMoveToLeftAndScrollingHands4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemMoveToLeftAndScrollingHands4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemCrouchAndHipShake4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemCrouchAndHipShake4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch0B.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch0B = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch0A.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch0A = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score6.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score6 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 6 //Start score block 7 if (RightFootCross1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing1 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing2 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross3 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing3 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross4 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing4 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch3 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch4 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross5 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing5 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross6 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing6 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch5 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch6 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross7 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing7 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross8 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing8 = stepFinished; stepsDone++; tempStepsDone++; } //Fem scores block 7 if (FemRightFootCross1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross7 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing7 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross8 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing8 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score7.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score7 = stepFinished; //scorePlayer(); scorePlayerF(); } //End score block 7 //Score block 8 if (LeftKneeLiftAndCross.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndCross = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLiftAndCross.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLiftAndCross = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift12 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift11 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift13 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift12 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftHandtoFaceSpinForward.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftHandtoFaceSpinForward = stepFinished; stepsDone++; tempStepsDone++; } if (LeftHandtoFaceSpinBack.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftHandtoFaceSpinBack = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick2 = stepFinished; stepsDone++; tempStepsDone++; } //Fem moves block 8 if (FemRightElbowSway1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightElbowSway2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightElbowSway3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightElbowSway4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway4 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score8.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score8 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 8 //Begin score block 9 if (LeftKneeLift14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift14 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick3 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift15 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick4 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift16 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftLeft.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftLeft = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftBack.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftBack = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftRight.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftRight = stepFinished; stepsDone++; tempStepsDone++; } //Fem moves block 9 if (FemLeftWristArcRaise1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftWristArcRaise1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightWristArcRaise1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightWristArcRaise1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHome1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHome1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftWristArcRaise2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftWristArcRaise2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightWristArcRaise2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightWristArcRaise2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemHome2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemHome2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score9.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score9 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 9 //Start score block 10 if (LeftKneeLift17.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift17 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeKick17.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeKick17 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift13 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift18.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift18 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeKick18.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeKick18 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift14 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift19.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift19 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick5 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift20.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift20 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeKick20.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeKick20 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift15 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift21.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift21 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeKick21.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeKick21 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeLift16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeLift16 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift22.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift22 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick6 = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 10 if (FemThrillerHandsLeft1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemThrillerHandsLeft1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftBendHipShake1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftBendHipShake1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemThrillerHandsLeft2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemThrillerHandsLeft2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftBendHipShake2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftBendHipShake2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score10.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score10 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 10 //Start score block 11 if (LeftKneeLiftAndFrontTorso3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorso3 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick7 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift23.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift23 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick8 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLift24.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLift24 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick9 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndFrontTorso4.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorso4 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick10 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeKick.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeKick = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKick.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKick = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 11 if (FemRightElbowSway5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightElbowSway6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightElbowSway6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftElbowSway6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftElbowSway6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeLift5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeKick2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeKick2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeLiftAndFrontTorso5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLiftAndFrontTorso5 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeKick.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeKick = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeLift6.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLift6 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightKneeKick3.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightKneeKick3 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score11.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score11 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 11 //Start score block 12 if (LeftKneeBendCrouch7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch7 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch8 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross9 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing9 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross10 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing10 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch9 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch10 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross11 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing11 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross12 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing12 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch11 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch12 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross13 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing13 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross14 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing14 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch13 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeBendCrouch14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeBendCrouch14 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross15 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing15 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootCross16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootCross16 = stepFinished; stepsDone++; tempStepsDone++; } if (RightFootSwing16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightFootSwing16 = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 12 if (FemLeftKneeBendCrouch7.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch7 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch8.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch8 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross9 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing9 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross10 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing10 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch9.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch9 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch10.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch10 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross11 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing11 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross12 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing12 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch11.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch11 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch12.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch12 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross13 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing13 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross14 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing14 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch13.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch13 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemLeftKneeBendCrouch14.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeBendCrouch14 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross15 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing15.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing15 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootCross16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootCross16 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightFootSwing16.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightFootSwing16 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score12.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score12 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 12 //start score block 13 if (LeftKneeLiftAndFrontTorso5.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndFrontTorso5 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKickAndUnderArm1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKickAndUnderArm1 = stepFinished; stepsDone++; tempStepsDone++; } if (LeftKneeLiftAndUnderArm.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { LeftKneeLiftAndUnderArm = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKickAndUnderArm2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKickAndUnderArm2 = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKneelAndUnderArm.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKneelAndUnderArm = stepFinished; stepsDone++; tempStepsDone++; } if (RightKneeKneelAndUnderArmAndLeftHandBehind.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { RightKneeKneelAndUnderArmAndLeftHandBehind = stepFinished; stepsDone++; tempStepsDone++; } //Fem score block 13 if (FemLeftKneeLiftAndFrontTorso2.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemLeftKneeLiftAndFrontTorso2 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemBackSpinRightKneeLift1.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemBackSpinRightKneeLift1 = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemForwardSpinFacingRightKneeLift.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemForwardSpinFacingRightKneeLift = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemCrouchHipSwivel.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemCrouchHipSwivel = stepFinished; femStepsDone++; tempFemStepsDone++; } if (FemRightHandHigh.Subtract(videoTime.Elapsed).Milliseconds + GLOBALS.SCORING_WINDOW < 0) { FemRightHandHigh = stepFinished; femStepsDone++; tempFemStepsDone++; } if (Score13.Subtract(videoTime.Elapsed).Milliseconds < 0) { Score13 = stepFinished; //scorePlayer(); scorePlayerF(); } //end score block 13 #endregion } //We are at the end of the dance video, time to display scores if (gameEnd.Subtract(videoTime.Elapsed).Milliseconds < 0) { loopTime.Reset(); loopTime.Start(); videoTime.Reset(); videoPlayer2.Stop(); gameState = (int)GameState.SCORE; GLOBALS.PLAYER_ONE_ACTIVE = false; GLOBALS.PLAYER_TWO_ACTIVE = false; } } //Show Score, go to CONTINUE if (gameState == (int)GameState.SCORE && restartGameLoop.CompareTo(loopTime.Elapsed) < 0) { loopTime.Reset(); loopTime.Start(); gameState = (int)GameState.CONTINUE; } //Loop back to the start if (gameState == (int)GameState.CONTINUE && restartGameLoop.CompareTo(loopTime.Elapsed) < 0) { videoPlayer2.Dispose(); videoPlayer = new VideoPlayer(); videoPlayer.IsLooped = true; videoPlayer.Play(video1); selectedDanceNum = 0; gameState = (int)GameState.ATTRACT; videoTime.Reset(); loopTime.Reset(); introVideoTime.Reset(); introVideoTime.Start(); } if (Keyboard.GetState().IsKeyDown(Keys.D)) { if (!bDebugKeyPressed) { bDebugKeyPressed = true; bShowDebugText = !bShowDebugText; } } else { bDebugKeyPressed = false; } if (totalScore > displayScore) displayScore += 11; if (totalScore < displayScore) displayScore = totalScore; if (totalScoreF > displayScoreF) displayScoreF += 11; if (totalScoreF < displayScoreF) displayScoreF = totalScoreF; base.Update(gameTime); // Base XNA update... }
public void Play() { if (_videoPlayer != null) _videoPlayer.Play(_video); else { if (_isInvalid && !string.IsNullOrEmpty(VideoFilename)) { _video = ResourceManager.Instance.GlobalContentManager.Load<Video>(VideoFilename); _videoPlayer = new VideoPlayer(); _videoPlayer.Play(_video); } } _isStopped = false; }
public AWVideo(Video video, float volume) { _videoPlayer = new VideoPlayer{ Volume = volume }; _videoPlayer.Play(video); _videoPlayer.Stop(); }
public GOVideo(Video _VideoFile, Rectangle _rect) : base(null, _rect) { videoPlayer = new VideoPlayer(); videoPlayer.Volume = Game1.songLiberty.VolumeMusic; VideoFile = _VideoFile; Visible = true; rect = _rect; videoPlayer.IsLooped = false; videoPlayer.Play(VideoFile); }
/// <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; }