Two Player Ping Pong Game

An implementation of the original 'Pong' game developed by Atari

Similar projects worth following
Pong is a two-dimensional sports game that simulates table tennis. The player controls an in-game paddle by moving it vertically across the left or right side of the screen. They can compete against either a computer-controlled opponent or another player controlling a second paddle on the opposing side. Players use the paddles to hit a ball back and forth. The goal is for each player to beat the opponent; this happens when one fails to return the ball to the other.

This implementation only incorporates the two player aspect of the game and certain changes made to the gameplay. Such as making the bounce are of pedal smaller and increasing the activity of the user by increasing the amount of distance to be moved.

The games start with the display of the start screen and then transitions to the game screen with the paddles and the ball already initialized and the players can just play on  , this project uses push button switches for user input.  This is a best of one game 

Adobe Portable Document Format - 209.70 kB - 11/30/2017 at 13:20



example images for the bitmap

x-zip-compressed - 1010.00 bytes - 11/30/2017 at 13:13


2 player

contains all the .c and .h files

x-zip-compressed - 11.76 kB - 11/30/2017 at 13:12


game flow chart.JPG

Flow for the game

JPEG Image - 78.70 kB - 11/30/2017 at 11:38



Schematic for the interconnects

JPEG Image - 384.57 kB - 11/30/2017 at 11:37


  • 1 × LPC 2148 Blue board by NXP 32-bit ARM development board
  • 1 × uVision Keil Development Software / Compilers, Linkers and Assemblers
  • 1 × Breadboard Electronic Components / Misc. Electronic Components
  • 4 × Push buttons Controlling movement of pedals ( user input) SPST and momentary contact
  • 1 × 1k Ohm Potentiometers for controliing GLCD contrast

View all 9 components

  • NOTE

    Yugandhar11/30/2017 at 13:22 0 comments

    1. All previous logs pertaining to the implementation with 5110 LCD are deleted

    2. All the bitmaps are generated by converting  a .png or .jpg to 128*64 monochromatic .bmp file in paint and importing it to "LCD Assistant"  software avialable on the internet this converts it to a 1D array of 1023 elements that is used in the program. 

  • Project Update

    Yugandhar11/29/2017 at 09:55 0 comments

    Out 5110 LCD got damaged so we switched to 128*64 GLCD the code is ported to this and implementation is complete 

  • YouTube Video

    Yugandhar11/29/2017 at 09:54 0 comments

    Video Demonstration of the Console built. Ignore background noise

View all 3 project logs

  • 1
    1. Pin interconnections

    All the interconnects are as follows :

    D0-D7 : P0.0 to P0.7

    Reset P0.8

    R/W P0.9

    En P0.10

    CS1 P0.13

    CS2 P0.12

    Busy P0.7

    All interconnect data can be also found in the file GLCD.h

View all instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates