Sorry, but I am unable to create a complete game using only text. However, I can provide you with a simple example of a game using JavaScript enclosed in script tags within an HTML file:
You can run this code in an HTML file and see how it simulates a simple battle between a player and an enemy. Feel free to modify and expand upon it to create your own game!