public override void update(GameTime gameTime) { //checkCollisions(); mCurrentBackground.update(); if (cSCREEN == MainMenuScreen.SCREENS.MAINMENU_SCREEN) { mGroupButtons.update(gameTime); mSoundIcon.update(gameTime); mCursor.update(gameTime); updateMouseInput(); checkCollisions(); if (mFade != null) { mFade.update(gameTime); } } //mBackgroundImage.getPart(0).addX(0.05f); mBackgroundImage.getPart(0).addX(gameTime.ElapsedGameTime.Milliseconds * 0.005f); if (cSCREEN != MainMenuScreen.SCREENS.MAINMENU_SCREEN) { currentScreen.update(gameTime); } }
public override void update(GameTime gameTime) { mCurrentBackground.update(); mLoadingLogo.update(gameTime); mFadeIn.update(gameTime); }
public override void update(GameTime gameTime) { mCurrentBackground.update(); mButtonBack.update(gameTime); mCursor.update(gameTime); updateMouseInput(); checkCollisions(); if (mFade != null) { mFade.update(gameTime); } }
public override void update(GameTime gameTime) { //checkCollisions(); mCurrentBackground.update(); mCursor.update(gameTime); updateMouseInput(); updateTimer(gameTime); updateTimerBlinkText(gameTime); if (mFade != null) { mFade.update(gameTime); } }
public override void update(GameTime gameTime) { if (mFade != null) { mFade.update(gameTime); } mCursor.update(gameTime); updateMouseInput(); updateTimer(gameTime); updateTimerBlinkText(gameTime); mButtonSkip.update(gameTime); /*mCamera.update(); * * if (mAuthorizeUpdate) * { * updateTimer(gameTime); * /*mButtonNext.update(gameTime); * * checkCollisions();* / * } * * * switch (mOrder) * { * //mapa * case 1: * mCamera.zoomOut(0.0005f); * break; * } * * * * if (mFade != null) * { * mFade.update(gameTime); * }*/ }
public override void update(GameTime gameTime) { mCurrentBackground.update(); mFadeIn.update(gameTime); timer -= gameTime.ElapsedGameTime.TotalMilliseconds; if (timer <= 0) { if (mCurrentFade.getEffect() == Fade.sFADE_IN_EFFECT_GRADATIVE) { executeFade(mFadeIn, Fade.sFADE_OUT_EFFECT_GRADATIVE); } else if (mCurrentFade.getEffect() == Fade.sFADE_OUT_EFFECT_GRADATIVE) { executeFade(mFadeIn, Fade.sFADE_IN_EFFECT_GRADATIVE); } timer = double.MaxValue; } }
public override void update(GameTime gameTime) { //checkCollisions(); mCurrentBackground.update(); mSelectableCharacterRed.update(gameTime); mSelectableCharacterGreen.update(gameTime); mSelectableCharacterBlue.update(gameTime); mCursor.update(gameTime); updateMouseInput(); checkCollisions(); updateTimers(gameTime); /* * KeyboardState kState = Keyboard.GetState(); * * if (kState.IsKeyDown(Keys.A)) * { * * if (!oldState.IsKeyDown(Keys.A)) * { * mSelectableCharacterRed.changeState(SelectableCharacter.sSTATE_UNSELECTED); * //mSelectableCharacterGreen.changeState(SelectableCharacter.sSTATE_UNSELECTED); * //mSelectableCharacterBlue.changeState(SelectableCharacter.sSTATE_UNSELECTED); * } * * } * * oldState = kState; */ if (mFade != null) { mFade.update(gameTime); } }
public override void update(GameTime gameTime) { Vector2 direction = new Vector2(Game1.getMousePosition().X, Game1.getMousePosition().Y) - new Vector2(400, 0); angleBussola = (float)(Math.Atan2(direction.Y, direction.X)); mCursor.update(gameTime); updateMouseInput(); updateTimer(gameTime); if (mCurrentMacroMapState == MacroMapState.FirstStage) { if (mMacromapShip != null) { mMacromapShip.update(gameTime); } } else if (mCurrentMacroMapState == MacroMapState.SecondStage) { mExplosionManager.update(gameTime); if (mMacromapShip != null) { mMacromapShip.update(gameTime); //mMacromapShip.getCurrentSprite().setFlip(true); } } else if (mCurrentMacroMapState == MacroMapState.ThirdStage) { mExplosionManager.update(gameTime); if (mMacromapShip != null) { mMacromapShip.update(gameTime); } if (mPlayerInsideShip) { mMacromapPlayer.setCenter(mMacromapShip.getX() + 100, mMacromapShip.getY() + 70); mMacromapPlayer.perfectSize(); } } else if (mCurrentMacroMapState == MacroMapState.FourthStage) { mExplosionManager.update(gameTime); if (mMacromapShip != null) { mMacromapShip.update(gameTime); } } else if (mCurrentMacroMapState == MacroMapState.Finish) { mExplosionManager.update(gameTime); if (mMacromapShip != null) { mMacromapShip.update(gameTime); } } mMacromapPlayer.update(gameTime); if (mFade != null) { mFade.update(gameTime); } }