/// <summary> /// Complex initialization for the boss : create parts, add them to game engine, etc. /// This is called when boss comes to screen /// </summary> public void InitBoss() { //Parts leftEarRelativeLoc = new Vector2(75, -205); leftEar = new DerrickEar(this.location + leftEarRelativeLoc); leftEar.SrcRect = new Rectangle(666, 197, 200, 386); TGPAContext.Instance.AddEnemy(leftEar); rightEarRelativeLoc = new Vector2(160, -260); rightEar = new DerrickEar(this.location + rightEarRelativeLoc); TGPAContext.Instance.AddEnemy(rightEar); leftHandRelativeLoc = new Vector2(20, 300); leftHand = new DerrickHand(this.location + leftHandRelativeLoc); leftHand.SmokeInBackground = true; TGPAContext.Instance.AddEnemy(leftHand); rightHandRelativeLoc = new Vector2(0, 305); rightHand = new DerrickHand(this.location + rightHandRelativeLoc); rightHand.SmokeInBackground = false; TGPAContext.Instance.AddEnemy(rightHand); rightWheelsRelativeLoc = new Vector2(0, 538); rightWheels = new DerrickWheels(this.location + rightWheelsRelativeLoc); TGPAContext.Instance.AddEnemy(rightWheels); leftWheelsRelativeLoc = new Vector2(3, 516); leftWheels = new DerrickWheels(this.location + leftWheelsRelativeLoc); TGPAContext.Instance.AddEnemy(leftWheels); this.DrawLifebar = true; this.maxLifebarValue = hp + leftEar.HP + leftHand.HP + leftWheels.HP; }