Sure! Here's an example of a simple game where balls appear when they hit a box. The game is implemented as a single HTML file enclosed in script tags:
In this game, balls will appear on the canvas. Whenever a ball hits the box, two new balls will appear. The balls move around the canvas and bounce off the walls. The game uses basic canvas drawing techniques to render the objects and handles collision detection. You can play the game by running the HTML file in a web browser, preferably on a smartphone.