Sure! Here's a simple text-based game about Rick and Morty:
Rick and Morty Adventure
To play the game, copy the code into a new HTML file and open it in a web browser. You will see the game interface with a description of the current location and available options. Use the provided buttons to navigate through the game and make choices.
In this game, you start at home with Rick and Morty. You can choose to explore and go on an adventure, which takes you to Rick's garage. From there, you have the option to enter the inter-dimensional portal, where you can collect an alien artifact. You can also go back to the previous locations at any time. The game also handles invalid options and displays an appropriate message.
Note: This is a very basic game with limited functionality; it's meant to demonstrate the structure and flow of a simple text-based game. Feel free to extend and enhance it as per your requirements.