How Can I Make a Game Using Only Procedural Programming?

0
2
Asked By RandomCoder42 On

Hey everyone! I'm a junior developer with a quirky mission: to create a game using various programming paradigms and share my experience on a blog or YouTube channel. However, I've hit a snag. Most game development tools lean towards object-oriented programming, which is understandable, but I'm really trying to steer clear of that. I initially wanted to use C alongside SDL3, but I've been struggling to find a way to keep it purely procedural. Any suggestions for tools or languages that would let me create a game without the OOP influence?

5 Answers

Answered By GameDevNinja On

Did you know the classic game Colossal Cave was actually written in FORTRAN? It just goes to show that procedural programming has been used in game development for a long time! So, if you're looking for a purely procedural approach, you might want to explore older languages like FORTRAN or even BASIC. They might bring you closer to your goal!

Answered By OldTimer101 On

Isn't it interesting how people often mix up OOP and procedural programming? Just because a language can support both paradigms doesn't mean it has to be used as OOP. Stick with procedural logic, and you can definitely still create a game with C!

Answered By TechieTom On

I’m a bit confused about your comment on C becoming object-oriented. C itself is not an OOP language; it’s just about how you use structures. You can definitely write procedural code in C without venturing into OOP territory! You might want to check out some examples of games made in C to see how it's done.

JuniorDevGal -

Yeah, I agree! C can definitely be used procedurally, especially if you're avoiding things like classes or inheritance.

Answered By CodeWhizKid On

I've worked with SDL3 in C, and I have to say that it doesn't inherently cause C to be object-oriented. It's still very much keeping things procedural, at least from my experience! Maybe try focusing on how you structure your game logic?

Answered By BASICEnthusiast On

BASIC could be a fun option for something like this! It’s pretty straightforward and allows for procedural programming without complicating things with objects.

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.