Ejemplo n.º 1
0
 public Banjo(int x, int y)
 {
     this.type = BanjoType.Standard;
     Init(x, y);
     this.yVel = ACWGame.HEIGHT / 4;
     ai = new StandardBanjoAI();
 }
Ejemplo n.º 2
0
 public void Init(BanjoType type, Accordian player, GameState state = null)
 {
     if (type == BanjoType.Standard)
     {
         this.yVel = ACWGame.HEIGHT / 3;
         ai = new StandardBanjoAI();
     }
     else if (type == BanjoType.Hunter)
     {
         this.ai = new HunterBanjoAI(player);
     }
     else if (type == BanjoType.DeadlyStrummer)
     {
         this.hp = 2;
         this.xVel = ACWGame.WIDTH / 2.8;
         this.yVel = ACWGame.HEIGHT / 4;
         this.ai = new DeadlyStrummerAI(player, state);
     }
     this.state = state;
     this.type = type;
 }