Sure! Here's an example of a game where you're on a plane and have to build floors to earn money. You can buy and sell weapons that you don't need. It uses JavaScript and is enclosed in script tags in a single HTML file:
Please note that this code example is for demonstration purposes only and may require further enhancements or modifications to suit your specific needs.