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

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