A simple turn-based RPG game built in Python that runs in the terminal.
This project was created as a learning project to practice Python architecture, modular code organization, and game logic.
Players can explore the world, encounter enemies, and fight using abilities in a turn-based combat system.
- ๐งญ Exploration system
- ๐พ Random monster encounters
- โ๏ธ Turn-based combat
- ๐ Inventory system
- ๐ง Player abilities
- ๐ฒ Randomized events
- ๐งฉ Modular project structure
The game runs entirely in the terminal using a menu-based system.
Example flow:
- Player starts the game
- Chooses an action
- Explores the world
- Encounters monsters or finds loot
- Battles enemies in a turn-based combat system
Example combat screen:
You were intercepted by a Skeleton!
MONSTER: Skeleton
HP: 20
1. Attack
2. Use Ability
3. Run
src/
โ
โโโ actions/
โ โโโ player_actions.py
โ โโโ combat_actions.py
โ
โโโ methods/
โ โโโ texteffect.py
โ โโโ player_create.py
โ
โโโ main.py
Clone the repository:
git clone https://github.com/jotaaave/python-turn-based-game.gitEnter the project folder:
cd python-turn-based-gameRun the game:
python src/main.py- Python 3.8+
- No external libraries required
Planned improvements:
- NPC interaction system
- Loot and reward system
- Equipment and items
- More monsters and abilities
- Save / Load system
- Procedural areas
This project was built to practice:
- Python programming
- Object-oriented design
- Game loops
- State management
- Modular project architecture
Contributions are welcome.
If you'd like to improve the project:
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
This project is open source and available under the MIT License.