A tiny, spooky point-and-click adventure game where you explore an abandoned library. Each dusty tome you discover opens a random real book from Google Books. But beware... you're not entirely alone in these halls.
- Atmospheric exploration through a mysterious abandoned library
- Point-and-click navigation between rooms
- Interactive bookshelves that connect to real books via Google Books API
- Eerie background music
- One sneaky jumpscare (you've been warned! 👻)
- Retro-style Myst-inspired gameplay
- Python 3.7+
- Pygame
- PyWebView
- Requests
- NumPy
- Clone the repository:
git clone https://github.com/pdennis/abandonedlibrary
cd haunted-library- Install required packages:
pip install -r requirements.txt-
Set up your Google Books API key:
- Get an API key from Google Cloud Console
- Set it as an environment variable:
export GOOGLE_BOOKS_API_KEY='your-api-key'
- Or pass it directly to the GoogleBooksAPI class
-
Make sure you have the required asset folders:
images/- Contains all scene imagesaudio/- Contains background music and sound effects
- Run the game:
python library.py- Navigation:
- Click the arrows to move between rooms
- Explore bookshelves to discover random books from Google's vast library
- Keep an eye out for interactive elements...
game.py- Main game file containing all game logicimages/- Scene images and visual assetsaudio/- Sound effects and background musichorror.mp3- Background ambiancescream.mp3- You'll find out...
- Built with Pygame and PyWebView
- Integrates with Google Books API
- Created as a fun Halloween project

