Sure! Here's an example of a simple game where you can control two balls and throw boomerangs using JavaScript. The game will be implemented inside a single HTML file:
In this game, you will control two balls, a blue one and a red one, by dragging your finger on a smartphone screen. By dragging your finger, you can determine the direction of the thrown boomerang. The balls are represented as circles, and the boomerang is a rotating square. The goal is to hit the balls with the boomerang. When the boomerang collides with a ball or goes out of the canvas, it will reset to its initial position.