This isn't going to be a very interesting post, but I spent most of my time today re-organizing various biome attributes. Previously, I had a system that looked like this:
I had a script with a ridiculous number of arguments - and GameMaker has an argument limit... and I don't like limits. I wanted to do more biome improvements (among those improvements biome transitions).
The transitions between biomes aren't particularly smooth. While the biomes are aligned by temperature, there's no smooth transition in blocks between biomes. If a desert is next to a mountain, the sand will instantly change to stone. I wanted to fix that today, but I found that I had reached the argument limit with my chunk generation script! The solution? Enums (enumerators)!
I set up a huge list of enums for all of the different biomes, and then modified the generation script to only require 3 arguments (allowing me to set an indefinite amount of parameters for biomes without using any more arguments).
Until next time!
November's monthly task is to finish the inventory rewrite (Crevis) and to begin drafting levels (Nesus).
The author of the blog is Niften, or Sour Apple. He posts daily near the end of the day, usually before 11:00 PM.