Skip to content

u/UrbanPandaChef

In this archive from Oct 2024 to Jun 2025

0
posts
131
comments
0
media
687
score
11 saved before deletion

Top comments

Many of these things aren't really godot specific.

  1. Use a signal bus - It's a global script with signals attached. It's better to just dump all your signals in here and refactor down to objects later if necessary. The problem with signals on objects is you often have to have objects that either know about each other or managers that do which half breaks the promise of signals. A signal bus solves this.
  2. Use the service locator pattern - You can have objects register themselves to a global script on _enter_tree(). It's just a Dictionary<string,object> with the key being the class name. Then you no longer need to look for services.
  3. Avoid typing up node paths as strings everywhere you can. Wire it all in via @export. It ensures the node tree stays flexible and you can swap out parts.
  4. Add and remove signals on _enter_tree() and _exit_tree() so the object cleans up after itself.
  5. If you must use strings make them constants. You can have a Constants class for strings that are shared between files you can organize them into groups using spacing and comments no need to over-complicate. If the constant is only used in the class then it can stay within the class.
  6. A lot of architectural problems can be solved with either a state machine and command pattern. Learn what those two are if nothing else.
  7. Wrap print() in a class so you can replace it with something else in the future (e.g. write to a log file) just by flipping a switch.
  8. An extension of #7 but invest in a developer console like Limbus Console.
  9. For those that are new to programming learn how to use break points, don't lean on print() for all your debugging.
214 points

There's the soft approach, you can suggest rule changes to the whole team.

  1. Require unit and integration tests with a tool like SonarQube enforcing test coverage %. This will hopefully catch some of those issues early.
  2. Suggest that the master, release and development branches be protected so people can't bypass rules.

The in-between step would be get the team lead on board with those changes above in a 1-on-1. But again, frame it as team wide rules and you're suggesting it because those are the standards you're used to.

The nuclear option is to go above his head and see if management can coax the team into using these best practices or confront the team lead on the team's behalf.

23 points

You will not be able to reach AAA or even AA. If your friend is one of those people with unrealistic expectations you can try kicking the can down the road and say you will do all low poly assets first. When the bulk of the game is complete you can hire a proper 3D artist capable of what he wants.

At this point he will fold once he does the math on the cost to replace everything you have. If you can't get him to agree on low poly then this partnership isn't going to work. Someone who only plays AAA games and can't adjust his expectations to something more reasonable won't be of much help.

22 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.