/Pong-Game

A 2-player Pong Game using SDL2 Library.

Primary LanguageC++

Pong Game Project

Version 1.0.0

A classic game of Pong implemented using the SDL2 library.

This project is a submission for the Udacity C++ Nanodegree program capstone project. No template code from Udacity was used.


Expected Behavior

Dependencies for Running Locally

Basic Build Instructions

  1. Clone this repo.
  2. Enter directory: cd Pong-Game
  3. Make a build directory in the top level directory: mkdir build && cd build
  4. Compile: cmake .. && make
  5. Copy resources folder to executable folder cp -r ../FP/Resources .
  6. Run it: ./PongByCan

Gameplay instructions

Player 1 controls : W/D Player 2 controls : UP/DOWN Press SPACE to start the game.

File Class Structure

Rubric points addressed

  • The project demonstrates an understanding of C++ functions and control structures.
    • Game.cpp, line 267
  • The project uses Object Oriented Programming techniques.
    • GameObjects.h
  • Classes use appropriate access specifiers for class members.
    • GameObjects.h
  • Classes abstract implementation details from their interfaces.
    • Game.h
  • The project follows the Rule of 5.
    • GameObjects.h line 36-40
  • The project uses smart pointers instead of raw pointers.
    • Game.h line 46-48
  • The project uses multithreading.
    • Timer.cpp line 34
  • A mutex or lock is used in the project.
    • Timer.cpp line 20