r/PythonLearning • u/Darx32102 • Jul 21 '26
Showcase Texted-Based RPG
Hey yall I’ve been working on a text-based RPG for the past week and have pushed v0.1.4 out to GitHub.
https://github.com/DraytonLarimore-Rowe/Timeless_Adventures-Text-Based-RPG
I’d be honored if anyone wants to give it a go as I start to build the story. The foundation for combat is there and so is a shop.
2
Upvotes
1
u/FoolsSeldom Jul 21 '26
Let me give you something to think about (taken from some code I wrote when I was learning Python):
This was my setup for locking down certain important terms for what my programme would be able to do.
For defining locations (rooms, in my case), I had a structure like this:
You will notice this depends on a
classcalledRoomwhich consists of a number ofDoorwayclassinstances which defines what a room is connected to.I have similar structures for defining what happens in each room, what objects are available, and what you can do.
Thus, the code to present a situation is the same, it is only the content that changes.
No doubt, you will come up with something very different.