I don't think you can do much tactic there. Kill the highest one first, the right one last, the other ones as they come, and jump whenever a pineapple stomps.
And try to stay above the left pineapple - if you come below it, you will have to stand between the spikes as the only really safe place - which is death when the lower pineapple comes close and stomps. So if you are there, kill them all quickly

I also like the place where the left pineapple stands. It is the first one in big crystal order, so I usually kill it and then go there, which is a very safe place.