Devlog #4


This will be a short devlog... The last few days have been exhausting. I've had to change a massive chunk of the code to implement a single feature and allow even more freedom to the users but it's finally here: DOORS (and custom block types)

What happened?

To put it simple, I wanted to implement doors for a long time and I thought that it would be an easy part! "When you place the door, just place two blocks one on top of each other and it makes a door" but I was wrong... So wrong...

They are their own type of block with their own features, they work their own way and it must not depend on any other type of block! Which means that the game needs to consider them as Blocks but nothing else than blocks while they have their own implementation ("abstract factory" and all that kind of complicated stuff).

Simply: Rewrite the blocks themselves entirely!


In the end, it works quite well, and allowed me to clean up so much old code and open up more control for the players who want to create their own addons. Blocks now have events  when they are placed, removed, updated, etc... You can create your own types of blocks, it's all up to you!


Either way... This was a challenge, but it's finally done. Enjoy the door implementation! (Or your own block types)

Leave a comment

Log in with itch.io to leave a comment.