Tuesday, February 28, 2017

Housing part 2

The house system is in a state that it can be used but it took quite a while and the rules with which a house will be built changed quite a bit, instead of creating the walls first the floor will be created first, then the walls and after that the roof, I also removed the levels button and instead players can just created high walls and add a floor to different levels, so why all these changes? well for one I didn't want to restrict players and adding more levels from a button would mean that only a certain wall height could be created and that seemed too much of a restriction and just complicates the programming unnecessarily.

Automated tools have also taken some of my time and some of the tools I will be creating later as it just seems too much work and I really want to focus on gameplay after the greedy meshing.

The construction GUI has also undergone some major changes as we forgot that we need to add other types of buildings and constructions to the world beside houses.

I've also been able to identify rooms automatically by using a flood fill algorithm, it starts filling above every floor cube and while it fills any found floor cubes will be removed from the check as they would just flood the same space unnecessarily, once a space is filled and it's closed inside walls and such it is defined as a room.

I also created RLE compression so I can compress the houses into a smaller size.

No comments:

Post a Comment