Exemplo n.º 1
0
 public Turret(Texture2D texture, Vector2 position, float health, Texture2D bullet) : base(texture, position)
 {
     this.bullet = bullet;
     this.health = health;
     bulletType  = new BulletType(BulletType.bulletType.Normal);
     //bulletTimer = new Timer(EnemyStatistics.BASETURRETDELAY);
     CreateBulletTimer(bulletDelay);
     hitTimer = new ColouringTimer(GlobalColouring.TURRETHITTIMER, GlobalColouring.TURRETHITBREAKTIMER, GlobalColouring.TURRETHITCYCLE, GlobalColouring.TURRETHITCOLOR);
 }
Exemplo n.º 2
0
        public HealthSystem(int currentAmount, int maxAmount) : base(currentAmount, maxAmount)
        {
            WarningPercent = 0.3f;

            hitTimer = new ColouringTimer(0.2f, 0.2f, 3, Color.Red);
        }