Building simple Pong Game using C++

Offered By
Coursera Project Network
In this Guided Project, you will:

Develop Your Skill in Object Oriented Programming (OOP)

Be able to implement simple Pong Game and Play it with a friend

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

By the end of this project, you will create a simple functioning pong game using C++. In this project, you will be able to define class ball and paddle. Also, you will be able to draw the game map. Moreover, you will be able to create a game manager class which has the implementation function to move the paddle using the keyboard and another function to do the logic of the game and the direction of the ball when hitting either the ball or the paddle. In this project we’ll use codeblocks IDE which is an open source IDE and it’s very simple to write our code in , which will help us implement all the needed functions and classes that is necessary to build our game Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Software GamesSoftware TestingClasses and objectsObject-Oriented Programming (OOP)C++

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Implementing Ball Class

  2. Implementing Paddle Class

  3. Initializing the game manager

  4. Implementing the draw function

  5. Testing the draw function and Implementing the input function

  6. Finalize the game manager and Test the Game

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.