public override void Update() { ItemSprite.Update(); Hitbox = ItemSprite.GetHitboxFromSprite(Location); itemTimer--; if (itemTimer == 0) { PlayerLevel.Instance.DespawnList.Add(this); ScoreKeeper.Instance.IncrementCoins(); } }
public void Update(GameTime gameTime) { passedSeconds += gameTime.ElapsedGameTime.TotalMilliseconds / 1000.0; if (passedSeconds >= 1) { TimeRemaining--; passedSeconds--; } if (Peach.Location.X < 850) { Peach.Sprite.SwitchAnimation(1, 4); Peach.Location += new Vector2(5, Constants.ZERO); } else { Peach.Sprite.SwitchAnimation(Constants.ZERO, 6); } Peach.Update(gameTime); LogoSprite.Update(gameTime); }
public override void Update() { ItemSprite.Update(); gravityManagement.Update(); Position -= Vector2.UnitX * 5; }
public override void Update() { ItemSprite.Update(); gravityManagement.Update(); }
public override void Update() { ItemSprite.Update(); }
public override void Update() { ItemSprite.Update(); Hitbox = ItemSprite.GetHitboxFromSprite(Location); }