Treasure Island is an interactive Python-based adventure game where players make choices to navigate through a mysterious island in search of hidden treasure! ๐ฐ
โ๏ธ Multiple Choice-Based Gameplay โ Each decision affects the outcome!
โ๏ธ Sound Effects ๐ต โ Added immersive audio using pygame
for background music & event sounds.
โ๏ธ Colorful CLI ๐จ โ Enhanced the experience with ANSI escape codes for vibrant text formatting.
โ๏ธ Simple Yet Engaging Storytelling ๐ โ A fun way to practice Python's conditional statements & logic.
- Python ๐
pygame
(for sound effects ๐ถ)- ANSI Escape Codes (for colored text ๐จ)
1๏ธโฃ Install Python
- Make sure you have Python 3.x installed on your system. You can download it from Python's official website. 2๏ธโฃ Install pygame
- This game requires the pygame module for handling sound effects. Install it using the following command: pip install pygame 3๏ธโฃ Add Required Audio Files ๐ต
- Place the following MP3 audio files in the same folder as your Python script:
- background.mp3 (Background music)
- win.mp3 (Winning sound)
- gameover.mp3 (Game over sound)
- These files are essential for the gameโs sound effects to work properly.
This project was built as part of my #100DaysOfCode challenge while learning Conditional Statements, Logical Operators, and Scope in Python.
- Add a GUI version using Tkinter or Pygame
- More story branches for richer gameplay
- Inventory & points system
๐ Follow My Coding Journey:
LinkedIn: https://www.linkedin.com/in/sohammahajan788
Twitter (X): https://x.com/SohamMahajan788
GitHub: https://github.com/SohamMahajan788
๐ Contribution
- Feel free to fork this project and improve upon it! ๐
๐ Star This Repo If you like this project, consider starring it on GitHub!
Happy coding! ๐๐
๐ Created by Soham Mahajan