Skip to content

A sophisticated C pong fork. D2D wrappers written in C++.

License

Notifications You must be signed in to change notification settings

makuke1234/PongD2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PongD2D

Release version Total downloads C version C++ version wakatime

A pong fork written in C utilising Direct2D API (similar to my other project SnakeD2D. Wrappers for Direct2D are written in C++. The application binary has been built on the MSYS2 platform which includes the MinGW port of the GNU C Compiler (GCC) & the GNU C++ Compiler (G++).

Obtaining

Windows binaries can be downloaded here.

Controls

Key Function
W Move left wall up
S Move left wall down
Up Move right wall up
Down Move right wall down
Escape Pause/unpause
Enter Restart game
F11 Toggle fullscreen

Changelog

  • 1.3.3

    • Shut down logic thread before freeing the dxFactory
  • 1.3.2

    • Fix UB when going to fullscreen
  • 1.3.1

    • Add window resizing support
  • 1.3.0

    • Make scoring more engaging, points are given for whole game instead of the number of bounces, game ends at 10 points
  • 1.2.0

    • Made ball movement more random/realistic
    • Added random number generator, mt19937-like engine Wiki: Mersenne Twister
  • 1.1.1

    • Paddle movement speed is no longer affected by the frame rate
  • 1.1.0

    • Move to a more responsive graphics approach.
      Kudos to Creel, his video on D2D real-time game loops.

    • Keyboard response is better too, raised new issue, keyboard response is tied to framerate

  • 1.0.1

    • Smoother paddle operation / better keyboard response
  • 0.9.1

    • Fix bug when compiling for release mode, add volatile to an important variable

License

This project uses the MIT License.

Credits

Icons made by Smashicons from www.flaticon.com