Sure! Here's an example of an HTML game that allows you to control a spaceship and fly to the moon. It uses JavaScript and pictograms for a smartphone-friendly interface. Just save the code below as a ".html" file, open it in a web browser, and you can start playing!
When you run this HTML code in a web browser, you'll see a canvas with a spaceship and a moon pictogram. Tapping the left half of the canvas moves the spaceship up, and tapping the right half moves it down. The objective is to reach the moon at the top of the screen. Once you reach the moon, an alert message will congratulate you.
Note: This is a basic example just to show the concept. You can customize and enhance the game as per your requirements. Enjoy flying to the moon!