Coder Social home page Coder Social logo

magical_duel's Introduction


Magical Duel

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.

Table of Contents

Description

"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,

Technical Requirements

To run the game locally, you need the following:

  • Python 3.7 or later

Gameplay Features

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

Installation:

  1. Clone this repository to your local machine:
git clone https://github.com/sabashahbaz/Magical_Duel.git
  1. Navigate to the project directory:
cd Harry_vs_Dementor
  1. Install the required dependencies using pipenv:
pipenv install
  1. Run the Dash app:
pipenv run python app.py
  1. Install Pygame library:
python -m pip install -U pygame==2.5.0 --user

How to Play

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

Dependencies:

The game relies on the following libraries:

  • Pygame: A web application framework for building interactive web applications with Python.

Contributions

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.

Acknowledgments

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.

License

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.