Sure! Here's an example of a simple aviator game implemented as a single HTML file with JavaScript:
This aviator game is designed for smartphone operation. When the canvas is touched, the aviator moves up. The goal is to avoid collision with the pillars and keep scoring by passing through the gaps. The game will end if the aviator collides with a pillar. The score is displayed on the screen, and if the game ends, an alert message will be shown with the final score. You can play the game by opening the HTML file in a web browser on your smartphone.
Please note that this is just a simplified example and there are many possible enhancements and improvements that can be made to create a more complex and enjoyable game.