Skip to content

About

A 2D fighting game in Python and Pygame: play as a warrior against a computer-controlled wizard.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

21 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸฅŠ Street Fighter

Warrior vs Wizard: you against the computer

Street Fighter Banner

Typing Animation

Python Pygame License Stars


๐ŸŽฎ About The Game

Street Fighter is a single-player 2D fighting game built with Python and Pygame. You control the Warrior and fight a computer-controlled Wizard in fast, one-on-one rounds. Knock the Wizard's health to zero to win the round and add a point to your score.

"Enter the arena and prove you can outfight the machine!" โš”๏ธ


๐Ÿ“‹ Table of Contents

Section Quick Links
๐ŸŽฎ Features
โš™๏ธ Requirements
๐Ÿš€ Installation
๐ŸŽฏ How to Play
๐Ÿ“ฆ Downloads
๐Ÿ“„ License
๐Ÿ™ Credits
๐Ÿค Contributing
๐Ÿ“ง Contact

โœจ Game Features

๐Ÿ—ก๏ธ The Warrior (You)

Player

  • โš”๏ธ Two sword attacks
  • ๐Ÿƒโ€โ™‚๏ธ Run and jump around the arena
  • ๐ŸŽฏ Read the AI and punish its mistakes

๐Ÿง™โ€โ™‚๏ธ The Wizard (Computer)

Computer

  • โœจ Two magic attacks
  • ๐Ÿง  Chases you down and keeps its spacing
  • ๐Ÿ›ก๏ธ Counter-attacks when you jump or swing
  • ๐Ÿƒ Backs off and dodges when its health is low

๐ŸŽฏ Core Gameplay Features

Feature Description
๐Ÿค– Computer Opponent AI-controlled Wizard that approaches, jumps, counters and retreats
๐Ÿ–ฑ๏ธ Main Menu Start Game, Controls, Scores and Exit, all clickable
๐Ÿ“– In-Game Controls Guide Keys, rules and tips available from the menu
โฑ๏ธ Round Countdown 3, 2, 1, FIGHT! before every round
๐Ÿ’š Health Bars Live health for you and the computer; each hit deals 10 damage
๐Ÿ† Scoreboard Rounds won by you and by the computer this session
๐ŸŽฌ Sprite Animations Idle, run, jump, two attacks, hit and death for both fighters
๐ŸŽต Music & Sound Effects Background music plus sword and magic sounds
๐Ÿ–ผ๏ธ Blurred Menu Backgrounds OpenCV blur behind the menus

โš™๏ธ Requirements

  • ๐Ÿ Python 3.7 or higher
  • ๐Ÿ“š Libraries: listed in requirements.txt
pygame         # Game engine
numpy          # Image arrays
opencv-python  # Background blur

๐Ÿš€ Installation

Step 1: Clone the Repository

git clone https://github.com/AadityaPanda/Street_Fighter.git
cd Street_Fighter

Step 2: Install Dependencies

pip install -r docs/requirements.txt

Step 3: Launch the Game

python src/main.py

๐Ÿ–ฅ๏ธ The game opens borderless at your screen's full resolution. To quit, click MAIN MENU during a fight, then EXIT.


๐ŸŽฏ How to Play

๐ŸŽฎ Controls (Warrior)

Action Key
โฌ…๏ธ Move Left A
โžก๏ธ Move Right D
โฌ†๏ธ Jump W
โš”๏ธ Attack 1 R
๐Ÿ—ก๏ธ Attack 2 T

Menus use the mouse. During a fight, click MAIN MENU (top centre) to leave the round.

๐Ÿ† Rules

+ You are the Warrior on the left, the computer is the Wizard on the right
+ Both fighters start with 100 health; every hit deals 10 damage
+ Bring the Wizard's health to zero to win the round
+ Each round won adds a point to your score (see SCORES in the menu)

๐Ÿ’ก Tips

  • Jump to dodge incoming attacks.
  • The Wizard punishes careless jumps and swings, so pick your moment.
  • When its health gets low it retreats, so stay on it.

๐Ÿ“ฆ Downloads

Latest Release

Download Source

โ„น๏ธ The prebuilt v1.1 release is the older two-player version. Run from source to play against the computer.


๐Ÿ“„ License

This project is licensed under the MIT License

License: MIT

Feel free to use, modify, and distribute in your projects!


๐Ÿ™ Credits

Role Contributor
๐ŸŽฎ Lead Developer Aaditya Panda
๐Ÿค– Computer Opponent (AI) Prakashtiwari7415

๐ŸŽจ Assets & Resources

Asset Type Source
๐ŸŽต Background Music Free Music Archive
๐Ÿ”ค Fonts Turok Font
๐ŸŽญ Sprites Custom-designed + Open-source assets
๐ŸŽง Sound Effects Royalty-free audio libraries

๐Ÿค Contributing

Contributions are welcome! Fork the repository on GitHub, then:

git checkout -b feature/AmazingFeature
git commit -m "Add AmazingFeature"
git push origin feature/AmazingFeature

and open a Pull Request. See CONTRIBUTING.md for details.

Contributors


๐Ÿ“ง Contact

Email GitHub LinkedIn


๐Ÿ’ซ "Try something new every day!"

Closing Message

Made with Love Python

About

A 2D fighting game in Python and Pygame: play as a warrior against a computer-controlled wizard.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages