Text-Based Horror Chase is a suspenseful, text-driven adventure game built in Java.
Players navigate through a haunted environment, making choices that determine their fate.
The game features a dynamic map, interactive rooms, and a relentless enemy AI that pursues the player, creating an immersive horror experience.
- Interactive Gameplay: Navigate through rooms using text commands.
- Dynamic Map: Rooms are procedurally generated, ensuring a unique experience each time.
- Enemy AI: A pursuing enemy that adapts to player movements.
- Multiple Endings: Your choices lead to different outcomes.
- Terminal-Based Interface: Play directly in your terminal or command prompt.
- Java: The primary programming language.
- Object-Oriented Programming: Utilized for structured and maintainable code.
- Randomization Algorithms: For generating the game map and enemy behavior.
- Java 11 or higher installed.
- A terminal or command prompt.
- Clone the repository:
git clone https://github.com/sumitojha2002/Text-Based-Horror-Chase.git
- Navigate into the project directory:
cd Text-Based-Horror-Chase - Compile the Java files:
javac *.java - Run the game:
java Main
-
Use directional commands like north, south, east, west to move.
-
Interact with objects using commands like examine, use, or take.
-
Make strategic decisions to evade the pursuing enemy.
-
Your goal is to survive and escape the haunted environment.
-
Main.java: Entry point of the game, initializes the game loop.
-
Game.java: Handles game logic and player interactions.
-
Player.java: Defines the player's attributes and actions.
-
Enemy.java: Manages the enemy's behavior and movement.
-
Room.java: Represents individual rooms in the game.
-
GameMap.java: Generates and manages the game map layout.
This project is licensed under the MIT License - see the LICENSE file for details.