public override void Update()
 {
     Sprite.Update();
     if (_samus.FacingRight)
     {
         _samus.ApplyForce(new Vector2(.5f, 0));
     }
     else
     {
         _samus.ApplyForce(new Vector2(-.5f, 0));
     }
 }
Exemple #2
0
 public void Update()
 {
     if (_bomb.BoundingBox.Intersects(_samus.BoundingBox))
     {
         _samus.ApplyForce(new Vector2(0, -4));
     }
     if (Sprite.Frame == Sprite.Frames)
     {
         Game1.GetLevel().Destroy(_bomb);
     }
 }
Exemple #3
0
 public override void Update()
 {
     Sprite.Update();
     if (_samus.FacingRight)
     {
         _samus.ApplyForce(new Vector2(.5f, 0));
     }
     else
     {
         _samus.ApplyForce(new Vector2(-.5f, 0));
     }
     if (_samus.HasMissileUpgrade && _samus.MissilesOn && _samus.Missiles > 0)
     {
         _samus.MissileCreationUpdate();
     }
     else
     {
         _samus.BulletCreationUpdate();
     }
 }
 public override void RightHold()
 {
     _samus.ApplyForce(new Vector2(0.5f, 0));
 }