Duke Nukem 3D Code Review (2013)(fabiensanglard.net)
fabiensanglard.net
Duke Nukem 3D Code Review (2013)
http://fabiensanglard.net/duke3d/
2 コメント
Haven't seen it, but a large switch can be for implementing a state machine. Which is a good structure to put a whole lot of application code in. You can tell if all the states and events are handled; you can find exactly where code for a state transition lies.
Really nice review of source for a truly classic game.
It's cool that we have source available and even better that it's so easy to digest with the help of the review like this.
It's cool that we have source available and even better that it's so easy to digest with the help of the review like this.
Like, there's definitely some smart thinking in this code, but there are also several things that just floor me. A 3000 line switch?
I also see this in JavaScript from the 90's. Everything global. No patterns. Its just weird.