public void BeforeShot(Karetka karetka) { isShot = false; sprPosition.X = karetka.sprPosition.X + karetka.sprRectangle.Width / 2 - 2; sprPosition.Y = scrBounds.Height - karetka.sprRectangle.Height - sprRectangle.Height / 2; speed.Y = 0; }
public void Shot(Karetka karetka) { isShot = true; sprPosition.X = karetka.sprPosition.X + karetka.sprRectangle.Width / 2 - 2; //sprPosition.Y = karetka.sprPosition.Y + sprRectangle.Height / 2 - 4; sprPosition.Y = scrBounds.Height - karetka.sprRectangle.Height - sprRectangle.Height / 2; speed.X = 0; speed.Y = -5; sound.PlayCue("shot"); }