Sure! Here's an example of how you can create a spaceship shooter game where the player needs to balance each engine thrust to move left or right. The game is implemented as a single HTML file enclosed in script tags:
In this game, the spaceship's horizontal movement is controlled using the left and right arrow keys. The player must balance the engine thrust by pressing the keys to move left or right. The spaceship's position is updated based on the engine thrust and balance. The game loop continuously updates the spaceship's position, clears the canvas, and redraws the spaceship. The game starts automatically when the HTML page is loaded.
Please note that this is a basic implementation of the game, and you can enhance it further as per your requirements by adding shooting mechanics, enemies, and other game elements.