In this microgame, I have created a coin pickup interaction using a mouse.
Use arrow keys to move around the platform. As you collect your coin, the color changes to gray. Avoid going outside the platform boundary; else you will fall.
I have created the elements in Illustrator and used p5.play.js to develop the microgame.