Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gauravg-20/pingpong-game
Two dimensional ping pong game using kivy framework
https://github.com/gauravg-20/pingpong-game
game kivy pingpong-python python
Last synced: about 1 month ago
JSON representation
Two dimensional ping pong game using kivy framework
- Host: GitHub
- URL: https://github.com/gauravg-20/pingpong-game
- Owner: GauravG-20
- License: cc0-1.0
- Created: 2021-08-14T19:03:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T21:35:27.000Z (about 2 years ago)
- Last Synced: 2024-11-07T08:29:14.943Z (3 months ago)
- Topics: game, kivy, pingpong-python, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# PingPong.py using kivy framework#PingPong is a two-dimensional sports game that resembles table tennis.
#It requires two players and each player controls an in-game paddle to hit the ping pong ball back and forth.
#The player1 gains a point when the player2 misses to hit the ball.
#Kivy is a free and open source Python library for developing mobile apps and
other multitouch application software with a natural user interface.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Instructions#The user would require to install the Kivy framework in his computer for this game to work.
(Visit : https://kivy.org/#download)
#Its better to install pygame along with kivy.
(type pip install pygame @cmd)
#Best stable version of python to support Kivy would be Python 3.7.1
#After python and kivy are configured successfully, download all the files inside this repository
(Note : "pingpong.py" is the final code, remaining files are day-day updates)
#Make sure that the .py file and the .kv file are downloaded in the same folder
#After completing the above instructions, simply open the .py file and the game should start automatically.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Bugs#The velocity increases over time, hence after a while its almost impossible to control the ball
#The ball might start off with a weird direction due to the values produced by RandInt function. In such cases, simply restart the .py file
#Sometimes the ball is caught inside the paddle and the score increases invariably.
#Hence make sure that the ball hits the surface of the paddle to avoid this bug.
enjoy :)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------