Beispiel #1
0
        public EnemyManager2(Texture2D texture, Rectangle initialFrame, int frameCount, PlayerManager playerSprite, Rectangle screenBounds)
        {
            this.texture       = texture;
            this.initialFrame  = initialFrame;
            this.frameCount    = frameCount;
            this.playerManager = playerSprite;

            EnemyShotManager = new ShootManager(texture, new Rectangle(3, 12, 5, 5), 4, 2, 150f, screenBounds);

            SetUpWaypoints();
        }
Beispiel #2
0
      //When mentioning the class playermanager it will all of the things under it related
      public PlayerManager(Texture2D texture, int currentFrame, int spriteWidth, int spriteHeight, Rectangle screenBounds)
      {
          this.playerSprite = texture;
          this.currentFrame = currentFrame;
          this.spriteWidth  = spriteWidth;
          this.spriteHeight = spriteHeight;

          this.screenBounds = screenBounds;

          CollisionRadius = playerRadius;

          PlayerShotManager = new ShootManager(texture, new Rectangle(0, 665, 5, 7), 1, 15, 250f, screenBounds);

          CollisionRadius = playerRadius;
      }