Sure! Here's a simple HTML game that meets your requirements. It's a "Sand Box" game where you can move around and place portals to travel between them. The game is controlled using the arrow keys (up, down, left, and right) to move, and the spacebar to place portals. You can only place two portals at a time.
To use this code, save the player's pictogram as "emozi_all/player.png" and the portal's pictogram as "emozi_all/pictogram.png" in the same directory as the HTML file. You can customize the pictograms as per your needs. When you open the HTML file in a web browser, you'll be able to play the Sand Box game using the arrow keys to move around and the spacebar to place portals. Enjoy the game!