Sure! Here's a sample implementation of the game you described using HTML and JavaScript:
In this game, a tornado moves from left to right, and if it collides with the apartment, the player loses. The game restarts automatically after the collision.
You'll need to replace the image URLs for the tornado and apartment with the actual image paths. Also, make sure the images are in the same directory as the HTML file.
Feel free to customize the game further as per your requirements.