Example #1
0
        public override void Update()
        {
            ItemSprite.Update();
            Hitbox = ItemSprite.GetHitboxFromSprite(Location);

            itemTimer--;
            if (itemTimer == 0)
            {
                PlayerLevel.Instance.DespawnList.Add(this);
                ScoreKeeper.Instance.IncrementCoins();
            }
        }
Example #2
0
 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);
 }
Example #3
0
 public override void Update()
 {
     ItemSprite.Update();
     gravityManagement.Update();
     Position -= Vector2.UnitX * 5;
 }
Example #4
0
 public override void Update()
 {
     ItemSprite.Update();
     gravityManagement.Update();
 }
Example #5
0
 public override void Update()
 {
     ItemSprite.Update();
 }
Example #6
0
 public override void Update()
 {
     ItemSprite.Update();
     Hitbox = ItemSprite.GetHitboxFromSprite(Location);
 }