local Spawner = {}

function Spawner.star(width, height)
  local margin = 36
  return {
    x = love.math.random(margin, width - margin),
    y = love.math.random(margin + 34, height - margin),
    radius = 8,
    life = 8,
    phase = love.math.random() * math.pi * 2,
  }
end

function Spawner.meteor(width, difficulty)
  local radius = love.math.random(11, 22)
  return {
    x = love.math.random(radius, width - radius),
    y = -radius,
    radius = radius,
    speed = love.math.random(135, 205) + difficulty * 8,
    drift = love.math.random(-32, 32),
    spin = love.math.random() * math.pi * 2,
  }
end

return Spawner
