2 ms·
Yes it will scale. "Parent of any group" "Business logic" Are just concepts you made up in your head. Those are just nouns your using. They don't really mea
by nightowl_games 3y ago
Yes it will scale.
"Parent of any group"
"Business logic"
Are just concepts you made up in your head.
Those are just nouns your using. They don't really mean anything.
You design your abstractions, you design your scene trees, such that you create an abstraction level that represents your "business logic".
Ie, in our games, we have a FriendsPanel which has a script that will render your friends list. It exposes it's dependencies: a FriendRow packed scene, and a reference of which nodepath to add the FriendRows to.
The game itself, well, the "business logic" will be different for each style of game and style of developer. I'm 10 years deep in indie game dev. My advice is to just fucking send it. My code now is pretty good, but gameplay code tends to be complicated AF and usually is huge procedural blocks. Resist your urge to modularize gameplay code. Your years away from being able to do that. Copy + Paste is a better modularization technique than whatever gong show abstraction your thinking of anyways.
(The best gameplay abstraction code I've ever seen is basically object type based collision response handling, a system like this is great for many games)
Your urge to refactor shit is your brain trying to do something that will take less calories than solving the problem of "why is this game not fun". It's procrastination.