Screen.Recording.2023-09-24.at.2.29.43.PM.mov
The Fighting Game is an entertaining two-player combat game with a playful background representation of the University of Debrecen in Hungary. Players control characters and engage in battles using simple keyboard inputs. The game features movement, jumping, and attacking mechanics.
- Two players game.
- Player 1 controls:
- A: Move left
- D: Move right
- W: Jump
- Q or E: Attack
- Player 2 controls:
- Arrow keys for movement
- L or P: Attack
- Press the "SPACE" key to pause the game.
- Each player starts with 100 health, and each hit deducts 10 health.
- Attack range determined by a red rectangle created when attacking.
- Clone the repository:
git clone https://github.com/Hean-Chhinling/Fighting_Game.git - Navigate to the project directory:
cd Fighting_Game - Run the game:
python main.py
I welcome contributions to enhance the game. To contribute, follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-feature - Implement your changes and commit them:
git commit -m "Add new feature" - Push your changes to the branch:
git push origin feature/new-feature - Open a pull request explaining your changes and enhancements.
- Pygame Library: Pygame is a popular library for developing 2D games in Python, providing support for graphics, sound, and user input.
- SpriteSheet: SpriteSheet is a library for handling sprite sheets and displaying animations efficiently.
- Sound effects are downloaded from OpenSource music sound effect online.
The main challenge during the game's development was working with the sprite sheet. Accurate identification of each sub-image's dimensions within the sprite sheet was necessary to ensure smooth and consistent animations. Failure to do so could lead to incorrect character animations, creating visual inconsistencies during gameplay.
This project is licensed under the MIT License.
Special thanks to the following resources for their contributions and inspiration:
- Pygame Documentation
- SpriteSheet Documentation
- OpenSource Music Sound Effects
For questions or feedback, feel free to contact me at heanchhinling@gmail.com