Hold and move your finger to slide the tray.
Make a catching game: the player slides a tray along the bottom to catch falling coins and avoid falling red balls. Each coin scores a point, and three red balls end the game. Make it get harder slowly as the score grows.
View code
// every frame:
for (const item of falling) {
if (game.overlap(item, tray)) item.isCoin ? score++ : lives--;
}