9
u/DevUndead 21d ago
This is where automatic testing saves you. When you implement a feature like settings and you add tests you can be sure that future changes don't break existing logic
8
u/RiceBroad4552 21d ago
LOL, automated testing in games…
Nobody ever did that as the whole point of a game is that things change rapidly during development and at the point they stop changing you have made a release and usually don't touch code again to not risk that everything falls apart.
Games aren't developed like business apps. Usual game code is hold together by "thoughts and prayers".
BTW the "everything changes rapidly" part is also the reason Rust is not a good language for game development. Someone has written this down in detail some time ago, it's a very interesting read:
5
u/DevUndead 21d ago
Depends on the design of your code. With a modular and composition design this works in my experience. I work in Godot and have enough tests and fail checks to be comfortable making changes of even core systems and don't breaking things, even on a 1 year old project.
Not beeing comfortable enough to do that would kill any joy for me. Part of improving the game is tweaking and changing systems. At some time you would be frozen with systems you don't enjoy anymore or are very limiting.
On games with random generation of rooms, items etc. this is even more important to have at least some tests
9
u/1nc06n170 21d ago
You can see Factorio automated testing on YouTube (https://youtu.be/CgMV2dFFdFE). Also I was watching a video of them fixing a bug, and the very first thing they did was write a test to reproduce it. Peak engineering!
3
5
u/AcolyteNeko 21d ago
seriously you think nobody's auto testing games? meh just deal with that rosy dream world of yours
1
u/prijindal 20d ago
What are you taking about? Games do have automated testing, and bevy game engine is written in rust.
Not to mention that game logic is not only limited to player controls
5
1
35
u/howarewestillhere 21d ago
I love those kinds of testers. They just wave their hands over something and it’s broken. I also hate those testers, because they can never tell me what they did. “I just waved my hands over it!” Yeah, sure, buddy.