/Text-Adventure-Game

Python-based Text Adventure Game with a GUI interface using Tkinter 💬

Primary LanguagePython

Text Adventure Game

Overview

This Python-based Text Adventure Game features a graphical interface using Tkinter. Players can choose their character class, explore different locations, engage in quests, and battle monsters. The game involves gaining experience, leveling up, and managing an inventory with items such as potions and gold.

Features

  • Interactive GUI for playing the game
  • Character creation with different classes
  • Traveling between locations
  • Engaging in quests and battles with monsters
  • Leveling up and managing inventory

Requirements

  • Python 3.x
  • Tkinter (usually included with Python)

Installation

  1. Ensure you have Python 3.x installed on your system.
  2. Download or clone the game script to your local machine.

How to Use

  1. Open your terminal or command prompt.
  2. Navigate to the directory where the script is located.
  3. Run the script using Python:
    python game.py

Gameplay Instructions

  • Start Adventure: Click "Start Adventure" to begin.
  • Create Player: Choose a class and enter a name for your character.
  • View Stats: Displays your current stats, level, health, and inventory.
  • Choose Activity: Select from viewing stats, traveling, shopping, or undertaking quests.
  • Travel: Move to different locations within the game.
  • Shop: Buy or sell potions.
  • Quest: Engage in quests to battle monsters and earn rewards.

Game Outputs:

image image image image image image image image

Test Cases

image image image

Developer Notes

  • The Player class handles player attributes, leveling up, and healing.
  • The Monster class represents enemies with health and attack values.
  • The GameApp class manages the game flow, GUI, and interactions between the player and the game world.
  • Key methods include create_widgets, start_adventure, choose_activity, travel, shop, quest, and battle.

Future Enhancements

  • Add more quests and different types of monsters.
  • Implement a more sophisticated inventory system with additional items.
  • Add sound effects and background music for a more immersive experience.
  • Improve the graphical interface with custom artwork and animations.

Enjoy playing the Text Adventure Game! If you encounter any issues or have suggestions for improvements, feel free to contribute or open an issue.