Sure! Here's a simple building game implemented as a single HTML file using JavaScript and enclosed in script tags. This game allows the player to construct a tower by tapping on the screen:
Building Game
In this game, there is a tower represented by a gray vertical rectangle. The player can tap/click anywhere on the screen to add a block (represented by a red horizontal rectangle) to the tower. The goal is to build the tower as high as possible without it collapsing (reaching the top of the screen).
Please note that this is a very basic implementation meant to demonstrate the concept of a building game. You can enhance it by adding scoring, levels, and other features as per your requirements.