Hi, folks!
Perhaps Casey himself or people who are following the project closely can comment. I am at day 067 right now. During the stream Casey embeds the whole update & render part of the GAME_UPDATE_AND_RENDER function inside the Updatable check:
| if(Entity->Updatable) {
...
}
|
This leads to 200 lines of codes moving deeper one level of indentation. Why not instead do the following:
| if(!Entity->Updatable) {
continue;
}
...
|
This would lead to the code that is much cleaner and understandable, as well as easier to read via diff.
Was this question ever discussed on the stream? Is there some reasoning behind this approach or is it just a habit?