I'm glad to see you're interested in creating a game! Here's a simple example of a text-based game using JavaScript that you can build upon:
This is a simple game where you can choose to gather resources or attack humans to survive and dominate the universe. Feel free to customize and expand upon this to create your own unique game!