Sure! Here's an example of a game where you have to destroy the barracks to win. The game is implemented as a single HTML file, contains JavaScript, and is enclosed in script tags. It is playable as a finished game and can be operated on a smartphone. Pictograms are not used in this example, but you can enhance it with visuals if desired.
To play the game, simply run the HTML file in a web browser that supports JavaScript, such as Chrome or Firefox. Use the up and down arrow keys to move the player. The objective is to collide with the barracks (brown rectangle) to destroy them and win the game.