This is a text-based adventure game where the player navigates through a cave, interacts with different characters and objects, and attempts to find a legendary treasure. The game features an inventory system, interactive scenes, and various endings based on the player's choices.
- Inventory System: Players collect items like a map, torch, and rope, which are saved in the browser's local storage.
- Scene Navigation: The game progresses through different scenes with dynamic text and buttons based on the player's decisions.
- Typing Animation: Story text is typed out on-screen with a typing effect.
- Audio: Sound effects and background music are used to enhance the experience.
The game uses localStorage to persist the player's inventory and other game data across sessions. The inventory is stored as a JSON array, and items are added or removed as needed.
- Open the game in a web browser.
- Interact with the scenes by clicking buttons to make choices.
- Use the inventory to solve puzzles and navigate the cave.
- Multiple endings are available based on your decisions.
- HTML: Structure and layout of the game interface.
- CSS: Styling for the game elements and animations.
- JavaScript: Game logic, scene navigation, and local storage functionality.