Skip to content

coding-cryptid/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

43 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Pong w/ Pygame πŸ“

About This Project:

πŸ‘Ύ This project was built with Python/Pygame. The left paddle is controlled by using keys w(UP) and s(DOWN). The right paddle is controlled with the up and down arrows. Can be played single player but is more fun with a friend!

How I Build It:

πŸ‘©πŸ»β€πŸ’» I built this project following the "Build Pong with Pygame" project tutorial on Codedex.

To Begin:

I started by importing the Pygame and Random modules. Then, I set up the screen color and dimensions as well as defining the shade of purple and white that I would use. I defined the paddles, ball, and added a clock.

Stay in the Loop:

Next, I made a loop that begins with a "Start Game" message and includes defining what keys will move what paddle as well as the direction. The loop also includes the movement of the ball and the "bounce back" when the ball makes contact with one of the paddles.

Tech Stack:

MacOS Python Pygame Badge Visual Studio Code Git GitHub

Other Notes:

πŸ“ (I changed the color of the paddles to be purple instead of white.) πŸ“ (The tutorial left code order out.)

About

It's Pong! This project was built with Python/Pygame.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages