A classic but efficient formula.
For a more fluid experience, perhaps you could have made the spikes come out of the ground progressively and without real interruption, instead of spawning/despawning a bunch of them at once. That way, the player would need to somewhat stay alert to what is happening at the bottom of the planet.
Nice effort anyway.