Skip to content

Added a new game called Street Fighter #2743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Street_Fighter/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Aaditya Panda

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added Street_Fighter/assets/audio/magic.wav
Binary file not shown.
Binary file added Street_Fighter/assets/audio/music.mp3
Binary file not shown.
Binary file added Street_Fighter/assets/audio/sword.wav
Binary file not shown.
Binary file added Street_Fighter/assets/fonts/turok.ttf
Binary file not shown.
Binary file added Street_Fighter/assets/images/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Street_Fighter/assets/images/bg1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Street_Fighter/assets/images/bg2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Street_Fighter/assets/images/victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Street_Fighter/assets/images/warrior.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Street_Fighter/assets/images/wizard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 128 additions & 0 deletions Street_Fighter/docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
aadityapanda23@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
91 changes: 91 additions & 0 deletions Street_Fighter/docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# Contributing to Shadow Fight

Thank you for considering contributing to **Shadow Fight**! Your support and ideas are invaluable in improving this project. Whether you're fixing bugs, adding features, or suggesting improvements, we welcome all contributions.

---

## 🛠 How to Contribute

### 1. Fork the Repository
- Click the **Fork** button at the top of the repository page to create your own copy of the project.

### 2. Clone Your Fork
- Clone your forked repository to your local machine:
```bash
git clone https://github.com/AadityaPanda/Shadow-Fight.git
cd Shadow-Fight
```

### 3. Create a Branch
- Create a new branch for your feature or bugfix:
```bash
git checkout -b feature/YourFeatureName
```

### 4. Make Changes
- Implement your feature, bugfix, or improvement. Ensure your code follows Python best practices and is well-commented.

### 5. Test Your Changes
- Run the game to ensure your changes work as expected:
```bash
python src/main.py
```

### 6. Commit Your Changes
- Commit your changes with a descriptive message:
```bash
git add .
git commit -m "Add YourFeatureName: Short description of changes"
```

### 7. Push Your Branch
- Push your branch to your forked repository:
```bash
git push origin feature/YourFeatureName
```

### 8. Open a Pull Request
- Go to the original repository and open a **Pull Request** from your branch. Provide a clear description of the changes and any relevant details.

---

## 🧑‍💻 Code of Conduct
By contributing, you agree to adhere to the project's [Code of Conduct](CODE_OF_CONDUCT.md). Be respectful, inclusive, and collaborative.

---

## 🛡️ Guidelines for Contributions

- **Bug Reports**:
- Use the [Issues](https://github.com/AadityaPanda/Shadow-Fight/issues) tab to report bugs.
- Provide a clear description of the bug, including steps to reproduce it.

- **Feature Requests**:
- Use the [Issues](https://github.com/AadityaPanda/Shadow-Fight/issues) tab to suggest new features.
- Explain the motivation behind the feature and how it will benefit the project.

- **Coding Style**:
- Follow Python's [PEP 8 Style Guide](https://peps.python.org/pep-0008/).
- Keep code modular and well-documented with comments and docstrings.

---

## 🔄 Issues and Feedback
- Check the [Issues](https://github.com/AadityaPanda/Shadow-Fight/issues) page for existing reports or feature requests before submitting a new one.
- Feel free to provide feedback or suggestions in the **Discussions** tab.

---

## 🙌 Acknowledgments
We appreciate your efforts in making **Shadow Fight** better. Thank you for contributing and helping this project grow!

---

## 📧 Contact
If you have any questions or need further assistance, reach out to the maintainer:
- **Developer**: Aaditya Panda
- **Email**: [aadityapanda23@gmail.com](mailto:aadityapanda23@gmail.com)

---

We look forward to your contributions! 🎉
126 changes: 126 additions & 0 deletions Street_Fighter/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# Street Fighter
![download](https://github.com/user-attachments/assets/1395caef-363b-4485-8c0a-8d738f3cd379)


**Street Fighter** is an engaging two-player fighting game built with Python and Pygame. This project features exciting gameplay mechanics, unique characters, and dynamic animations, making it a perfect choice for retro game enthusiasts and developers interested in Python-based game development.

## Features
- **Two Distinct Fighters**:
- **Warrior**: A melee combatant with powerful sword attacks.
- **Wizard**: A magic wielder with spell-based attacks.

- **Gameplay Mechanics**:
- Health bars for each fighter.
- Smooth animations for idle, run, jump, attack, hit, and death actions.
- Scoring system to track player victories.

- **Dynamic Background**:
- Blurred background effects during the main menu for a cinematic feel.

- **Sound Effects and Music**:
- Immersive soundtracks and attack effects.

- **Responsive UI**:
- Main menu with start, score, and exit options.
- Victory screen for the winning fighter.

- **Custom Controls** for two players.

## 📋 Table of Contents
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Gameplay Instructions](#gameplay-instructions)
- [Downloads](#downloads)
- [License](#license)
- [Credits](#credits)
- [Contributing](#contributing)
- [Contact](#contact)

## Requirements
- Python 3.7 or higher
- Required Python libraries:
- `pygame`
- `numpy`
- `opencv-python`

## Installation

Follow these steps to install and run the game:

1. **Clone the Repository**:
```bash
git clone https://github.com/AadityaPanda/Street_Fighter.git
cd Streer_Fighter
```

2. **Install Dependencies**:
```bash
pip install -r requirements.txt
```

3. **Run the Game**:
```bash
python src/main.py
```

## Gameplay Instructions

### Player Controls:
- **Player 1**:
- Move: `A` (Left), `D` (Right)
- Jump: `W`
- Attack: `R` (Attack 1), `T` (Attack 2)

- **Player 2**:
- Move: Left Arrow (`←`), Right Arrow (`→`)
- Jump: Up Arrow (`↑`)
- Attack: `M` (Attack 1), `N` (Attack 2)

**Objective**: Reduce your opponent's health to zero to win the round. Victory is celebrated with a dynamic win screen!

## Downloads

You can download the latest release of **Street Fighter** from the following link:

[![Version](https://img.shields.io/github/v/release/AadityaPanda/Street_Fighter?color=%230567ff&label=Latest%20Release&style=for-the-badge)](https://github.com/AadityaPanda/Street_Fighter/releases/latest) <a href="https://github.com/AadityaPanda/Street_Fighter/releases/download/v1.1/Game.zip"><img alt="Download" title="Download" src="https://custom-icon-badges.demolab.com/badge/-Download-0B6623?style=for-the-badge&logo=download&logoColor=white"/></a>

## License

This project is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute it in your projects.

## Credits

- **Developer**: Aaditya Panda
- **Assets**:
- Background music and sound effects: [Free Music Archive](https://freemusicarchive.org/)
- Fonts: [Turok Font](https://www.fontspace.com/turok-font)
- Sprites: Custom-designed and modified from open-source assets.

## Contributing

Contributions are welcome! Here's how you can help:
1. Fork the repository.
2. Create a new branch:
```bash
git checkout -b feature/YourFeatureName
```
3. Commit your changes:
```bash
git commit -m "Add YourFeatureName"
```
4. Push to the branch:
```bash
git push origin feature/YourFeatureName
```
5. Open a pull request.

Check the [CONTRIBUTING.md](CONTRIBUTING.md) for detailed guidelines.

## Contact

- **Developer**: Aaditya Panda
- **Email**: [aadityapanda23@gmail.com](mailto:aadityapanda23@gmail.com)
- **GitHub**: [AadityaPanda](https://github.com/AadityaPanda)

Try somehting new everyday!!!
21 changes: 21 additions & 0 deletions Street_Fighter/docs/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
3 changes: 3 additions & 0 deletions Street_Fighter/docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pygame
numpy
opencv-python
Loading