public virtual void Update(float dt) { tweenManager.Update(dt); transitionTimer.Update(dt); switch (state) { case ScreenState.TransitioningIn: if (transitionTimer.IsTrigged()) { State = ScreenState.Running; } break; case ScreenState.Running: break; case ScreenState.TransitioningOut: if (transitionTimer.IsTrigged()) { State = ScreenState.Done; } break; case ScreenState.Done: break; } cam.Update(dt); }
public void Update(float deltaT) { if (_timeTilNextInput >= 0.0f) { _timeTilNextInput -= deltaT; } _background.Position = new Vector2f(GP.WindowGameView.Center.X - GP.WindowSize.X / 2, GP.WindowGameView.Center.Y - GP.WindowSize.Y / 2); TimeObject to = Timing.Update(deltaT); Input.Update(); JamUtilities.Mouse.Update(); TweenManager.Update(to); TimeManager.Update(to); _state.Update(to); CanBeQuit = false; }
public void Update() { tm.Update(Time.deltaTime); if (mySprite2.x < _game.width / 12 && mySprite2.y < _game.height / 12) { mySprite.alpha -= 0.009f; mySprite2.alpha -= 0.009f; if (mySprite2.alpha <= 0 && mySprite.alpha <= 0) { mySprite2.alpha = 0; mySprite.alpha = 0; mySprite2.visible = false; mySprite.visible = false; if (mySprite.visible == false && mySprite2.visible == false) { mySprite.alpha += 1f; mySprite.alpha += 1f; } } } }
private void Update() { TweenManager.Update(Time.deltaTime); }