Hey everyone! I'm a junior developer with a quirky mission to build a game in every programming paradigm and share my experiences on my blog or YouTube. However, I'm hitting a wall with my current goal. Most game development tools lean heavily towards object-oriented programming, which makes sense but isn't what I want. I initially planned to use C with SDL3, but it feels like I keep running into object-oriented principles. So, I'm looking for suggestions on how to create a game using solely procedural programming. Any ideas?
6 Answers
Did you know that one of the most iconic games, Colossal Cave, was created using FORTRAN? That's a classic procedural language that predates C by a long time! It could be inspiring for your project.
I've worked with SDL3 and C, and I'm still not seeing how it leans towards object-oriented. It’s still very much a procedural language, so I wouldn't worry too much about that.
Just to clarify, C isn't object-oriented, but C++ is. Plenty of games have been successfully made using C, so you can definitely stick with it!
You might want to consider BASIC too! It's a very straightforward procedural language that could work for your game.
Is it entirely off-limits to use an OO language for procedural parts? Seems like there could be some overlap.
When you mention C feeling object-oriented, can you clarify? Just having structures doesn't automatically mean C is OO. Features like inheritance and member variables define OOP. You might find this video on the origins of OOP from a C developer's viewpoint interesting!

Thanks for the insight! I guess I got mixed up with how C can be structured. I'll check out the video!