I’ve temporarily created an icon for the game, just to give it some visual identity. It might change later on.
Textures are the main addition in this update, allowing each block to have a more complex look. For that, I’m using Texture2DArray, which stores each texture on a separate layer and performs better than AtlasTexture, which I considered using at first.
The texture images are kept as separate files, making them easier to reuse. When the game starts, it builds a Texture2DArray using all texture files.
In the ObjectSource, which is responsible for creating blocks, there are now options to define which texture is used on each side of the block.
Just a heads-up: the current block textures are reused from a texture pack I made for Minecraft. This is temporary and will be replaced in the future.
Because of this system, I had to create a plugin that converts all .png images into .tres resources. This plugin will gain more tools later and will be released for mod creation.
I also fixed a memory leak that caused data to remain in RAM even after the game was closed.
To solve it, I changed the base class of ObjectInstance from Object to RefCounted, which automatically clears objects with no references. I also had to check through the code to find where references were still lingering and make sure they get cleared when the game shuts down.
Lastly, I added three new blocks: stone, wood, and wooden plank.
That’s all for this update — I hope you enjoy it!
Thanks a lot, gamers! If you find any bugs, please let me know. And have fun playing! 🎮
0 comments