I’ve finally added some moving platforms to the game. Right now, the platforms only support linear motion. You place a platform, then set its destination as well as its speed.
In the future I want to add more intricate movement patterns. For example, it would be nice if you could define a path made out of an arbitrary number of points.
And perhaps instead of linearly interpolating between these points you could do a cubic spline or bezier.
Also, I can think of many situations where it would be nice to move the platform in a perfect circle.
There are many possibilities but I decided not to get carried away yet. We’ll see what happens once I return to moving platforms.