Powered by Create your own unique website with customizable templates.
CREVIS
  • Home
  • Devblog
  • Apply
  • About
  • Download
ALEC'S

Developer Blog

Organizing Biome Attributes

8/8/2017

0 Comments

 
Hello everyone!

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:
Example

    
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).
Picture
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).
Picture
Now, I can reference parameters of any biome like this:
Example

    
This allows for easy manipulation and easy accessibility of the biome's parameters. With me now having access to an indefinite amount of parameters, I can now work on things like the biome's transitions, which I hope to have done by tomorrow. Sorry for a boring coding devblog today... I'll have a more interesting one tomorrow!
Until next time!
0 Comments



Leave a Reply.

    Task

    February's task is to improve the combat system and create a system for enemies and their AI.

    Author

    The author of the blog is Alec. He posts weekly, usually on the weekends on Saturday.

    Categories

    All
    Crevis
    Life
    Nesus
    Website

    Archives

    July 2019
    March 2019
    February 2019
    October 2018
    December 2017
    October 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016

Powered by Create your own unique website with customizable templates.
  • Home
  • Devblog
  • Apply
  • About
  • Download