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.

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay