[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: realinquirycat2.gif (327 KB, 500x281)
327 KB
327 KB GIF
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?
>>
>>106496190
you will never learn how to code without actually doing it yourself.
>>
>>106496221
Godot
>>106496284
I have coded before, I just usually end up with bad spaghetti code that is not worth keeping
>>
>>106496314
>>106496190
see the issue about gamedev is it's not about coding
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 it

the 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 bother
if 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 it
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. 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 game
I'd be willing to try making small applications to learn, but my ultimate goal is still making a game.
>>
>>106496451
oh ok in that case you need to learn OOP
>>
>>106496618
Yeah I think so. Any book recommendations?
>>
>>106496673
no
just do stuff and then refactor
CS books are a meme unless you are going for the really advanced stuff, which you aren't
you just learn by doing

watch a youtube/udemy/whatever course and then just do stuff
make it work
and then keep refactoring
>>
>>106496883
this
>>
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.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.