I want to program my own indie game without any spaghetti code, what books should I read for this? I already understand some of the basics like: functions, classes, variables, and callbacks but I don't know how to structure and plan out my code, so I always feel lost. I basically never know what the best course of action is. I also code in c# but I assume that's probably not relevant since I'm not asking for language specific advice.
>>106496190>c#are you using unity?
>>106496190you will never learn how to code without actually doing it yourself.
>>106496221Godot>>106496284I have coded before, I just usually end up with bad spaghetti code that is not worth keeping
>>106496314>>106496190see the issue about gamedev is it's not about codingyou are already using an enginegoodall the hard stuff is already implemented for you, and whatever you wanna do you can easily google/chatgpt/youtube to make itthe hard part is the art/animations/music etc.unless you are good at that stuff and want to spent most of your time drawing, don't botherif you really wanna learn to code make something else not a game
>>106496333>you are already using an engine, good>all the hard stuff is already implemented for you, and whatever you wanna do you can easily google/chatgpt/youtube to make itThe problem is I still need to implement game systems for stuff like entering vehicles, jumping, falling, running, climbing, dying, picking up objects, special abilities, etc, and upgrading weapons. Idk how to manage all that since those tasks sometimes overlap and I don't want to do an infinitely long "if else" chain. I know this is probably one of many stupid noob problems I have, hence I want to expand my knowledge and not just copy and paste some random spaghetti code from an AI or stupid youtuber.>the hard part is the art/animations/music etc.I'm not super great at that stuff but I can do it and have done it in the past before(excluding music). If it ever becomes too much work for me to handle I can always try collaborating with others.>if you really wanna learn to code make something else not a gameI'd be willing to try making small applications to learn, but my ultimate goal is still making a game.
>>106496451oh ok in that case you need to learn OOP
>>106496618Yeah I think so. Any book recommendations?
>>106496673no just do stuff and then refactorCS books are a meme unless you are going for the really advanced stuff, which you aren't you just learn by doingwatch a youtube/udemy/whatever course and then just do stuff make it work and then keep refactoring
>>106496883this
https://teachyourselfcs.com/Look up a bunch of stack overflow or reddit threads and see what is mentioned the most
just start making games and when you dont know something look it up. your first few games will be really bad but eventually you will get good at it.
>>106496190k&r c
>>106496618Learning OOP is a trap since you start trying to make patterns before figuring out the problem.Some people never get out of this stage.
>>106496451>The problem is I still need to implement game systems for stuff like entering vehicles, jumping, falling, running, climbing, dying, picking up objects, special abilities, etc, and upgrading weapons. Unless that's 2D, you are aiming too high. FUck, I'd say even then, that's already too much. Make a "tower defense" where you are a single sniper who has to abandon his tower during the day, climb another while removing small annoying enemies, and then getting ready to fight during the night by sniping packages coming from the sky. Very little movement, you'll have jumping, running and falling. Also dying. Forget picking objects, but you can include special abilities and upgrading them. Don't over do it. Fuck, again, I think this is a lot already.
>>106496190"Game Programming Patterns" by Robert Nystrom. You can read it online as well.
>>106496190/gedg/ approved resources : https://rentry.org/gedg-resourcesits mostly videos and articles with too few books