Skip to content

Markues/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Classic Pong in C++ with SDL2

Classic Pong

Built with C++ and SDL2, SDL2_image, and SDL2_mixer modules

Quick start

Clone this repo.

Make sure the following are installed:

  1. SDL2
  2. SDL2_image
  3. SDL2_mixer

Setup a new project with your favorite IDE and copy over the files Make sure you've linked SDL2, SDL2_image, and SDL2_mixer to your project Make sure you're set to use /workspace so the resource files can be found

Compile and run!

Controls and Game Info

  • First Player to a score of 9 wins!
  • Left Player uses W and S keys
  • Right Player uses Up and Down arrow keys
  • Hit space to start the ball into motion
  • Optimized for 60Hz screens

Credits

Some of this code is repurposed from Lazy Foo's tutorials. They can be found here.

License

This code can only be used for personal use.

No permission of use for commercial / money-making means

About

Classic Pong in C++ with SDL2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published