Sure, here's an example of a game where the red ball chases the blue ball using JavaScript and HTML:
This code will create a canvas with a blue ball and a red ball. The blue ball can be controlled using the left and right arrow keys, and the red ball will follow the blue ball. The score increases every second the player survives. If the red ball touches the blue ball, the game over screen will be displayed.