public override void Update(Level level, ContentManager content) { if (level.count % 125 == 0) { Fireball fireball = new Fireball( spriteX + (faceLeft ? -63 : 31), spriteY - 16, direction ); fireball.LoadContent(content); level.projectiles.Add((Sprite)fireball); } }
// Shoot 4 fireballs in all directions public void Shoot(Level level, ContentManager content) { Fireball fireball = new Fireball(spriteX - 16, spriteY + 48, "down"); fireball.LoadContent(content); level.projectiles.Add((Sprite)fireball); }