Sure! Here's an example of a simple game that simulates building structures like in Fortnite using JavaScript and HTML. It allows you to build walls, ramps, and floors by clicking on pictograms on a smartphone-like interface.
To use this code, save it as a `.html` file and place the corresponding images (`emozi_cat.png`, `emozi_rabbit.png`, and `emozi_apple.png`) in the same directory as the HTML file. When you open the HTML file in a browser, you will see a smartphone-sized game interface with three pictograms representing the wall, ramp, and floor. Clicking on any of these pictograms will add the corresponding element to the building section below.
Note that this is a simple example and not a fully functional game like Advanced Fortnite building, but it should provide you with a starting point to build upon.