Skip to content

Treasure Island is an interactive Python-based adventure game where players make choices to navigate through a mysterious island in search of hidden treasure! ๐Ÿ’ฐ

License

Notifications You must be signed in to change notification settings

SohamMahajan788/Treasure_Island_text_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Treasure Island โ€“ A Text-Based Adventure Game ๐Ÿ๏ธ

Treasure Island is an interactive Python-based adventure game where players make choices to navigate through a mysterious island in search of hidden treasure! ๐Ÿ’ฐ

๐Ÿ”ฅ Features

โœ”๏ธ 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.

๐Ÿ› ๏ธ Tech Stack

  • Python ๐Ÿ
  • pygame (for sound effects ๐ŸŽถ)
  • ANSI Escape Codes (for colored text ๐ŸŽจ)

๐Ÿš€ How to Play

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:
  1. background.mp3 (Background music)
  2. win.mp3 (Winning sound)
  3. gameover.mp3 (Game over sound)
  • These files are essential for the gameโ€™s sound effects to work properly.

๐Ÿ’ก Inspiration

This project was built as part of my #100DaysOfCode challenge while learning Conditional Statements, Logical Operators, and Scope in Python.

Screenshot 2025-02-28 230034

๐Ÿ† What's Next?

  • 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

About

Treasure Island is an interactive Python-based adventure game where players make choices to navigate through a mysterious island in search of hidden treasure! ๐Ÿ’ฐ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages