Sure! Here's an example of a game where you have to navigate a character through an elevator and avoid cactuses. The game is implemented in a single HTML file with JavaScript, enclosed in script tags. The game assumes smartphone operation and uses pictograms for visuals.
Please note that this is a simplified example and should give you a basic idea of how to create a game using JavaScript and HTML. You can customize and enhance the game further based on your requirements.