So I gave fair chance to Unity , Unreal and Godot to check basic courses on Zenva and kind of liked C sharp way and making Unity way the Prefabs and quick occupy beautiful terrain in 5 minutes with post processing.
But as I hit barrier it’s the amount of error messages warnings which not all can be answered so considering Godot to be winner as community is super helpful , and people makes detailed tutorials .
But one thing is unresolved in back of my head - what does making production ready code , structure / hierarchy in case of 3d Games ?
Is it purely about reading code and be able to find where bug is ?
Is it about knowing how to minimise performance impact of code ?
Does Godot do Unit test as well , for larger codes?
Is principles between Godot and Unity transferable or each should be approached in their own way?
1 Like
“Production-ready” can mean a lot of things, it all depends on who you ask or what company you work for. Each company, or even each team within a company will have different rules on what is considered production-ready or not.
But the few things I came across while working for others:
- Formatting of code, following strict guidelines
- The readability of your code
- The patterns you use / isn’t allowed to use
- Was the code reviewed by at least X number of seniors or not
- Are there any unit tests covering the code you wrote
- And similar to the previous one, does your code cause any of the already present unit tests to fail or not
The slightly less corporate definitions can be a bit different, scalability can also come up very quickly.
As a few examples:
If you add 20 more enemies than you normally would, does any part of your code break? If you mash the keyboard like crazy during any part of the game, will the game crash? (Monkey testing) If something unexpected happens in your game that you did not test for, will the game handle it gracefully? Did you profile your game? Do you know why, at a certain point, your frames are cut in half?
Also yes, Godot has a rather nice unit testing framework, see: GitHub - bitwes/Gut: Godot Unit Test. Unit testing tool for Godot Game Engine.
But there are many, many more, so it’s difficult to answer, but those can be good starting points. I’ve only ever worked for a couple of smaller teams, never a massive game company, so I’m probably missing a lot of things.
3 Likes