public Powerup(SpriteSheet texture, Level level, Vector2 position, Vector2 size, PowerupType type) : base(texture, level, position, size, 0, 100.0f) { this.type = type; velocity.X = Game1.random.Next(2) == 1 ? -1 : 1; }
public Cannon(SpriteSheet texture, Level level, Vector2 position, Vector2 size, SpriteSheet bulletTexture) : base(texture, level, position, size, 1, 0.0f) { this.bulletTexture = bulletTexture; this.bullets = new List <Bullet>(); }
public Bullet(SpriteSheet texture, Level level, Vector2 position, Vector2 size, float speed, float lifeTime, Vector2 direction) : base(texture, level, position, size, 1, speed) { this.lifeTime = lifeTime; this.direction = direction; }