Earlier quoted context omitted.
I have zero experience in the video game industry, but I'd think that since video games get ~zero attention after they're shipped, writing maintainable code is less of a priority. I'd be really curious to see how the Pokemon Red/Blue split was done. Is it a C precompiler flag? Build config? Actual config? Cloned repo?
In the Pokemon Blue codebase they use 2 flag variables to distinguish between the different games, these are `pokemon_type` and `pokemon_type_blue`. The name of the second flag definitely hints that it was added later in development. These are the values for each game: Green: pokemon_type=0 pokemon_type_blue=0 Red: pokemon_type=1 pokemon_type_blue=0 Blue: pokemon_type=1 pokemon_type_blue=1 The general pattern for bra…
Source: https://m.bulbapedia.bulbagarden.net/wiki/Clefairy_(Pok%C3%A...
Very cool find about the pink version!