you should not be a 10x engineer or whatever, you should be focusing on the vision and ideas and emotions that make your project interesting and beautiful and touching. some of the greatest indie games of all time have absolutely nightmarish codebases because the creator was rightly focused on the player experience
if it shipped, it works
as a 7x engineer myself, let me just point out one thing: this is actually great engineering
it's a game, it has a state field, that state field represents all the possible values of "in a game" "in a cutscene"
- it's easy to add new scenes to the game
- it's easy to transition from one scene to the next
- there's no real performance overhead
- it's pretty easy to refactor or clean up, too
the feral men online who sneer at this sort of code will tell you "i could write something cleaner" or "it's ugly", but these men only know how to write code that demonstrates they have knowledge—it's how they passed exams, it's how they passed a tech interview, and it's absolutely nothing to do with actual good engineering
it's not to say that gamedevs don't do code crimes, i'm just real tired of programmers whos idea of "i could do better" is "i can demonstrate i know more features than you"
