Code Monkey home page Code Monkey logo

pingpong_game_in_pygame's Introduction

PING-PONG ๐Ÿ“

PING-PONG is a fun and fast-paced arcade-like game built with Pygame. The goal of the game is to deflect the ball with your paddle, scoring more points than your opponent.

image

Getting Started

You will need Python installed on your system, along with the Pygame library. If you don't have Pygame installed, you can do it by running pip install pygame on your command line.

To start the game, run the Python script via command line or through your IDE.

How to Play

The game is a two-player game. Your aim is to hit the ball with your paddle making the ball move to the opponent's side. If your opponent misses the ball, you get a point. The first player to score 5 points wins the match.

Each player starts with some special powers, which can be used to influence the game's direction. Powers are carefully limited, so use them wisely!

Controls

Player 1 (Left Paddle):

  • 'w': Move paddle up
  • 's': Move paddle down
  • 'd': Activate power 1 (when available) - This power shoots the ball with speed when hitting it.
  • 'a': Activate power 2 (when available) - This power moves the paddle in line with the ball

Player 2 (Right Paddle):

  • 'up arrow': Move paddle up
  • 'down arrow': Move paddle down
  • 'right arrow': Activate power 1 (when available) - This power shoots the ball with speed when hitting it.
  • 'left arrow': Activate power 2 (when available) - This power moves the paddle in line with the ball

Enjoy!

Have fun with the game and may the best player win!

pingpong_game_in_pygame's People

Contributors

vibrantish avatar

Stargazers

 avatar

Watchers

 avatar

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.