A simple 2D raycasting game where you explore a hallway, interact with objects, and collect an artifact to win the game.
- Raycasting Visualization: The game uses raycasting to simulate a first-person view of the hallway, rendering walls and objects.
- Movement: Move around the hallway using the WASD keys or arrow keys.
- Interaction: Pick up an artifact and bring it to a box to win the game.
- Pause Menu: Pause the game and resume at any time by pressing "P".
- HUD: Displays important game information such as inventory status, time elapsed, and steps taken.
- Menus: Includes a main menu, instructions screen, and a settings menu.
- Restart: Restart the game using the "R" key.
- Python 3.x
curses
library (built-in on most Unix-like systems, such as Linux or macOS)- On Windows, you may need to install
windows-curses
viapip install windows-curses
.
- On Windows, you may need to install
- W or Up Arrow: Move forward
- S or Down Arrow: Move backward
- A or Left Arrow: Rotate left
- D or Right Arrow: Rotate right
- Space: Interact (Pick up artifact or place it in the box)
- P: Pause the game
- Q: Quit the game
- R: Reset the game
- E: Open the settings menu
- Start the game from the main menu.
- Use the arrow keys or WASD to navigate through the hallway.
- Look for the artifact (represented by
|
) and pick it up by pressing Space. - Once you have the artifact, head to the box (represented by
X
) and press Space again to win the game. - You can pause the game at any time by pressing "P" and resume by pressing "P" again.
- If you wish to restart, press "R".
-
Clone the repository:
git clone https://github.com/andrewmuratov/h4llw4y.git cd h4llw4y
-
Ensure you have Python 3.x installed on your system.
-
If using Windows, install
windows-curses
to enablecurses
support:pip install windows-curses
-
Run the game:
python game.py
Here’s an example of the gameplay in action:
This project is licensed under the Unlicense - see the LICENSE file for details.