Jump to content
  • Advertisement
Sign in to follow this  

How to make Pong?

This topic is 1173 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All.

I'm part of an Art collective at University, and we are doing a show with an Arcade theme.

I've been asked to make a version of Pong, but with custom colours.

I know there are a number of tutorials out there on coding Pong from scratch, but sadly my coding skills are amateur at best.

Is there anyone here who might have already coded a version who might be willing to help me customize? I image it should be pretty simple and you will get credit for your contribution at the gallery show.

Thanks for any help / suggestions.


Share this post

Link to post
Share on other sites



In a nutshell, you do the following...


1) Create a window to "draw" in.

2) Use a graphics library to draw the two paddles and ball. Rectangles and filled rectangles will suffice.

3) a function to check two rectangles for overlapping. This is for collision detection.

4) Use a "event loop" to constantly poll for keyboard input and to update the screen display positions of the paddles and ball.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!