this post was submitted on 15 Jun 2023
9 points (100.0% liked)

Gamedev

15 readers
1 users here now

founded 2 years ago
 

If I just have C++ and say SDL or Raylib, how do I structure game code to keep it scalable (ie not a huge mess when I add more levels, items, mechanics, etc)? I have been able to make very simple stuff but the moment I try to add to it, it always gets out of hand and I can't really refactor it without starting fresh.

you are viewing a single comment's thread
view the rest of the comments
[–] ZILtoid1991@kbin.social 1 points 1 year ago

You can create a simple 2D engine with sprites and tilemaps relatively easily. It only took me ages as it wasn't my main project, and I'm very OCD on pixelart graphics and unaligelned pixels, also I did a lot of things in my own unique way (soon-to-be deprecated CPU remdering pipeline, software synths for audio, etc.).