Is unit testing viable in game programming?

后端 未结 7 1035
-上瘾入骨i
-上瘾入骨i 2021-01-30 01:06

I\'m fond of the idea of unit testing but I\'m having trouble applying it to game programming. Games are highly stateful and often the code doesn\'t break itself into distinct u

7条回答
  •  无人及你
    2021-01-30 01:41

    Many game programmers use the Entity-component-system architecture. They do it because it makes it easier to modify the behavior to game objects. But as it happens, it also makes it easier to unit test your code.

提交回复
热议问题