DEV Community

Noah11012
Noah11012

Posted on • Edited on

1

Using SDL2: Update for Pong

Sorry for not updating sooner. I was busy with several things including building my own PC, installing Linux and setting it up to my heart's content, and I am currently learning OpenGL. All of these things have kept me from updating the series.

But I can't beat around the bush for any longer.

I'm canceling the Pong clone creation.

Why?

Mainly because I don't know to properly write code for a game. When I first began Pong, I almost didn't plan anything. The only part I had planned was the update and draw construct for each class. Before I wrote this article, I was trying to get collision detection for the ball working. It then hit me that with this code it wasn't possible. At least not cleanly.

I wish I had this realization sooner, but the code would need some serious refactoring before continuing. I am not going through the hassle of it and decided to cancel the series.

But Using SDL2 in C++ will continue. I hope to get another article up in a day or two.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more