by andrewallbright · 4y ago · 0 comments
As a hobbyist game developer of ~1year, one thing that struck me was how I have not found many good sources of teaching that explains how to make a maintainable game. How does one make a code base for a video game that has desirable the non-functional qualities like maintainability? That question doesn't really have an answer...
I think it doesn't have an answer because those teaching game development haven't really asked. I'm sure it's due to many factors.
For anecdotal, I've asked about testing and CI/CD for unity in online spaces. There isn't much content on these critical subjects in the video game education space. I usually get a mix of responses but one that stuck out to me is that video games aren't appropriate for tests and it just slows down game creation.
I think that thought process more than anything is what leads to back half issues. I think that the video game industry has lagged behind the rest of the software industry and there is a huge opportunity for disruption.
In 5-10 years people should think it's absolutely outlandish to start a complex software project such as a video game project without a CI/CD engine running a suite of sensible tests. I think today that is true for most software projects, although as a community were still wrapping our heads around "what is a good test?"
My 2cents
It's not really very different from testing other big complex software. Everybody has evolving requirements. But the general culture of game development is to ignore automated testing entirely, which is awful.
There isn't as much benefit for a small platformer to test their jump height or physical interaction with the environment, and then change all tests whenever they decide that they need to adjust that height. On the contrary, some beloved glitches/exploits have come from allowing those weird interactions to exist.
In the web we have our cursor and it clicks on an element. In video game design the character can widely vary when it interacts with an element such as a "door".
The classic "why doors are hard" might explain why having a "regression suite for happy paths" might be near-impossible.
Though that the core reason for using the Entity, Component, Systems (ECS) in their coming Data Oriented Technology Stack (DOTS) it does help create far more maintainable code.
https://www.vox.com/videos/22661048/video-game-development-d...
All the tutorials, articles, etc just cover small bits and nothing addresses the full software dev lifecycle as it pertains to games.
Managing binary assets across even a small team presents a set of challenges the normal web-devs like myself have been unlikely to encounter, as well.
Traditional games are more like art, or rather more like novels than textbooks, where you write it once and put it out there.
That's of course changing with live service games so I suspect testing and maintainability will become increasingly written about.