Skip to content

MXD-K1/Ping-Pong-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Pong Game

A simple two-player Pong game where players compete to keep the ball in play and score points. The main purpose of making this game is to enhance my skills further and to practice programming. I started this project from scratch to simulate the process of understanding the requested tasks to make a project.

Features

  1. Basic classic Pong mechanics.
  2. Player vs Player mode.
  3. Basic UI for score display.
  4. Simple menu setting to change colors.

How to Run

  1. Clone this repository to your local machine.
  2. Ensure Python is installed (Python version >= 3.6 is required).
    You can verify your Python version with:
    python --version
  3. Install the required dependencies:
    pip install pygame
  4. If you are not in code file write this into the terminal:
    cd code 
  5. Run the main script:
    python main.py

Controls

  1. To move the first paddle use the keys w, s.
  2. To move the second paddle use the up and down arrow keys.
  3. To get out use k. The reason is that it is far form the first player movement keys.

Problems

  1. the box color in the settings is yellow , so when changing an item color to yellow they become one. To understand what I mean see the image.

Current goals:

  1. Refactoring and simplifying the code
  2. Adding a basic AI to the game.

Contributing

Contributions to this project are welcome and encouraged! Whether it's improving the code, fixing problems, suggesting new features, or sharing ideas, feel free to get involved.


To contribute:

  • Fork the project.
  • Make your changes.
  • Create a pull request!

License

This project is open-source and available under the MIT License. Feel free to use, modify, and distribute the code, provided proper attribution is given. For more information see the included license.

Acknowledgment

Big thanks to Clear Code for the video that helped me fix the problem of collision detection and other helpful improvements.

Contact

For any questions, issues, or feedback, don't hesitate to open an issue on GitHub or email me at hmdoonwork71@gmail.com.

About

A Ping-Pong Game built with Python and Pygame

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages