diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2018-01-18 11:04:53 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2018-01-18 11:04:53 +0100 |
| commit | 2cb22a74aed80e2cce68f16b0821a690c7c05b7a (patch) | |
| tree | 6a7a254662ebf795358d971f271e7a7f41484bb6 /Penguloon/Projectiles | |
| parent | aa6972a5d052d1f57dfda3dadb79fcd5d8ded30b (diff) | |
new levels, auto round start
Diffstat (limited to 'Penguloon/Projectiles')
| -rw-r--r-- | Penguloon/Projectiles/CannonballProjectile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Penguloon/Projectiles/CannonballProjectile.cs b/Penguloon/Projectiles/CannonballProjectile.cs index bfe04e0..dd3f7b6 100644 --- a/Penguloon/Projectiles/CannonballProjectile.cs +++ b/Penguloon/Projectiles/CannonballProjectile.cs @@ -5,13 +5,13 @@ namespace Penguloon.Projectiles { class CannonballProjectile : ProjectileBase { - public CannonballProjectile(ObjectBase ParentObject, float RotationAngle) : base(ParentObject, RotationAngle) + public CannonballProjectile(ObjectBase ParentObject, float RotationAngle, int extraPops = 0) : base(ParentObject, RotationAngle) { this.Texture = ContentManager.GetTexture("Bullets/cannon-ammo"); this.Speed = 450f; this.RotationSpeed = 5f; this.Size = new Vector2(ParentObject.Map.TileWidth / 2, ParentObject.Map.TileHeight / 2); - this.MaxBalloonPops = 5; + this.MaxBalloonPops = 5 + extraPops; Rectangle parentRec = new Rectangle(ParentObject.Position.ToPoint(), new Point(ParentObject.TileSpanX * ParentObject.Map.TileWidth, ParentObject.TileSpanY * ParentObject.Map.TileHeight)); |
