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

Gamedev

5 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
[–] TerabyteRex@kbin.social 1 points 2 years ago

if you arent using a game engine then you are creating a game engine. i found this out using monogame with c#. monogame has tons of classes to help you and even a game loop but there is still so much to build