Exemplo n.º 1
0
 public Enemy(Vector2 center)
 {
     Center = center;
     InitialPos = center;
     CurrentState = EnemyState.Patrol;
     initialLives = 1;
     health = new HealthBar(this.Center);
 }
Exemplo n.º 2
0
 public Wizard(Vector2 center)
 {
     healthRemaining = 10;
     //this.Center = new Vector2(325, 240);
     Center = center;
     current = wizardStatus.isAlive;
     Width = Height = 6;
     Texture = "wizardRight";
     coolDown = 5;
     shieldCoolDown = 100;
     shielded = false;
     heroHit = false;
     //leftTex = texOther;
     //rightTex = tex;
     initialLives = 10;
     health = new HealthBar(this.Center);
 }