A simple game, created using Pygame. Survive as long as possible by avoiding the Dementors' spells and eliminating them to earn points. Challenge your reflexes and strategic thinking to achieve a high score and become the ultimate defender against the dark forces.
- Description
- Technical Requirements
- Gameplay Features
- How to Play
- Dependencies
- Contributions
- Acknowledgments
- License
"Harry vs. Dementors" is a game developed using the Python programming language and the Pygame library. In this game, players take on the role of Harry Potter, to shot spells at the Dementor,
To run the game locally, you need the following:
- Python 3.7 or later
Control Harry Potter's movement using arrow keys. Shoot spells at the Dementor using the left shift key to eliminate them. Defeating Dementors earns you points, while getting hit by their spells reduces your health. The game features dynamic visuals, including character animations and spell effects, thanks to the Pygame library. git o
- Clone this repository to your local machine:
git clone https://github.com/sabashahbaz/Magical_Duel.git
- Navigate to the project directory:
cd Harry_vs_Dementor
- Install the required dependencies using pipenv:
pipenv install
- Run the Dash app:
pipenv run python app.py
- Install Pygame library:
python -m pip install -U pygame==2.5.0 --user
Run the game by executing the main script.
⬅️ Arrow Left: Move Harry left
➡️ Arrow Right: Move Harry right
⬆️ Arrow Up: Move Harry up
⬇️ Arrow Down: Move Harry down
Left Shift: Shoot spells
The game relies on the following libraries:
- Pygame: A web application framework for building interactive web applications with Python.
Contributions to the game are welcome! If you'd like to add features, fix bugs, or enhance the gameplay, feel free to fork this repository and create a pull request.
This game was inspired by the magical world of Harry Potter and created using the Pygame library, a fantastic tool for game development in Python.
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy the thrilling adventure of Harry vs. Dementors and show your mastery in defeating the dark forces!