duck.place

added moving platforms - 08 Jan 2022

Moving platform in action

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.

Moving platform in the editor

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.

Moving platform with many destination points

And perhaps instead of linearly interpolating between these points you could do a cubic spline or bezier.

Moving platform with smooth path

Also, I can think of many situations where it would be nice to move the platform in a perfect circle.

Moving platform with circular path

There are many possibilities but I decided not to get carried away yet. We’ll see what happens once I return to moving platforms.