How Can I Create a Game Using Only Procedural Programming?

0
36
Asked By SillyDev123 On

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

Answered By GameGuru456 On

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.

Answered By SDLMaster88 On

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.

Answered By DevTalks101 On

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!

Answered By ClassicCoder88 On

You might want to consider BASIC too! It's a very straightforward procedural language that could work for your game.

Answered By RandomCoder91 On

Is it entirely off-limits to use an OO language for procedural parts? Seems like there could be some overlap.

Answered By CodeWizard99 On

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!

SillyDev123 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.