// Controlls what´s allowed as input 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; PlayerShotManager = new Shooting(texture, new Rectangle(0, 300, 5, 5), 0, 2, 250f, screenBounds); CollisionRadius = playerRadius; }
public EnemyManager(Texture2D texture, Rectangle initialFrame, int frameCount, PlayerManager playerSprite, Rectangle screenBounds) { this.texture = texture; this.initialFrame = initialFrame; this.frameCount = frameCount; this.playerManager = playerSprite; EnemyShotManager = new Shooting(texture, new Rectangle(0, 300, 5, 5), 4, 2, 150f, screenBounds); setUpWaypoints(); }