public Player(List<Texture2D> _Texture, Vector2 _Position, int _Framecount,string PlayerType,string _PlayerID,Game1 _game1)
     : base(_Texture, _Position, _Framecount)
 {
     game1 = _game1;
     CollectableList = game1.CollectableList;
     HidingBoxList = game1.HidingBoxList;
     ViewPortWidth = game1.GraphicsDevice.Viewport.Width;
     ViewPortHeight = game1.GraphicsDevice.Viewport.Height;
     HealthBarDisplay = new HealthBar(game1.HealthContainer, game1.HealthBar);
     PowerBarDisplay = new PowerBar(game1.PowerContainer, game1.PowerBar);
     StarTex = game1.StarTex;
     FootballTex = game1.FootballTex;
     PlayerID = _PlayerID;
     if (PlayerType == "Messi")
     {
         PlayerShooting = game1.messi.ShootingTex;
         FootballsRemaining = game1.messi.FootballsRemaining;
         ShotPower = game1.messi.ShotPower;
         Speed = game1.messi.Speed;
     }
     else
     {
         PlayerShooting = game1.ronaldo.ShootingTex;
         FootballsRemaining = game1.ronaldo.FootballsRemaining;
         ShotPower = game1.ronaldo.ShotPower;
         Speed = game1.ronaldo.Speed;
     }
     MiddlePoint = new Vector2((_Texture[0].Width / 3)/2, _Texture[0].Height / 2);
 }
 public Opponent(List<Texture2D> tx,Vector2 pos, int framecount, List<Collectable> _CollectableList, Game1 _game1)
     : base(tx, pos,framecount)
 {
     SpriteImage = tx;
     Position = pos;
     DestinationRectangle = new Rectangle((int)Position.X, (int)Position.Y, tx[0].Width/3, tx[0].Height);
     CollectableList = _CollectableList;
     HealthBarDisplay = new HealthBar(_game1.HealthContainer, _game1.HealthBar);
     HidingBoxList = _game1.HidingBoxList;
     MiddlePoint = new Point((SpriteImage[0].Width/3)/2,SpriteImage[0].Height);
 }
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }
 public Messi(Game1 _game1)
 {
     Tex = _game1.MessiTex;
     ShootingTex = _game1.MessiShootingTex;
     FootballTex = _game1.FootballTex;
 }
 public Ronaldo(Game1 _game1)
 {
     Tex = _game1.RonaldoTex;
     ShootingTex = _game1.RonaldoShootingTex;
     FootballTex = _game1.FootballTex;
 }