- HTML
- CSS
- JavaScript
- Node v16.13.1
- npm v8.1.2
- webpack v4.46.0
This is an interactive, web-based text adventure game where players can explore a mysterious dungeon, solve puzzles, and engage in battles. The game is designed to provide an immersive experience where players can make choices, interact with the environment, and uncover the secrets of the dungeon.
Upon entering the game, the user is greeted with a description of their environment, and a handful of clues on how to proceed.
- Type commands in the input field and press Enter to execute actions. For example, "look around" to explore the room, "grab key" to collect an item, or "attack" to engage in battle.
- Pay attention to the game text displayed in the browser, as it provides descriptions of the environment, hints, and feedback on your actions.
- Explore the dungeon, solve puzzles, collect items, and prepare for the final battle. Your choices and strategies will determine your success in the game.
Here is a list of commands available to the player:
Command | Description |
---|---|
new game |
Initialize, or reset, to the beginning of a new game. |
give hint |
Receive a hint about your current situation. |
look around |
Observe your surroundings and gather information. |
grab [item] |
Collect items to aid your journey. |
use [item] |
Interact with an item in your inventory. |
unlock door |
Attempt to unlock a locked door with a key. |
use door |
Open a door and move to the next room. |
pull lever |
Pull a lever to trigger a mechanism or reveal secrets. |
open treasure chest |
Try to open a locked treasure chest. |
attack |
Engage in battle with the dungeon's monster. |
- Copy the URL provided for this repository.
- Open Terminal.
- Change your working directory to where you want the cloned directory.
- In your terminal, type
git clone
and use the copied URL from Step 1. Or, copy the following git command:
$ git clone https://github.com/jfpalchak/text-adventure.git
- In your terminal, assuming Node.js and npm is installed, type the following command to install the project's dependencies found in
package.json
:
$ npm install
- With the dependencies installed, type the following line in your terminal to build the application using webpack:
$ npm run build
- Additionally, if you wish to:
- Lint the JavaScript source code, you can do so by running ESLint the following command in the application's root directory:
$ npm run lint
- Run tests on the backend JavaScript with Jest, you can do so by running the following command in the application's root directory:
$ npm run test
- Lint the JavaScript source code, you can do so by running ESLint the following command in the application's root directory:
- And finally, to run a live server of the project, type the following line in your terminal:
$ npm run start
- Go to the website and access the application directly via GitHub Pages.
- Not all rooms have alternate 'detailedDescription' properties, when user alters a room.
- If any bugs are discovered, please contact the author.
MIT License
Copyright (c) 9/11/2023 Joey Palchak, Jonathan Cheng, Jeremy Josol, Onur Kaymak, Jake Elsberry