Sure! Here's an example of a simple game using JavaScript that represents the scenario you described. This game can be played on a smartphone:
This code will generate a canvas where five balls of different colors will move randomly until they merge together after 5 seconds. Then, an explosion effect occurs, represented by a growing golden circle.
You can copy this code into a single HTML file and open it in a web browser to play the game on a smartphone.