• Register
Post news RSS Devblog #8 | Canola, Recipes, Small Crates, Files

In this devblog I am going to show off the new canola plants, the new and improved hud and also the small crate. Apart from that, I am also going to discuss how everything is loaded from files in this game and how all the systems are moving over to the new content package system.

Posted by on

Hello everyone!

It has been some time since my last devblog! I have been working on a lot of under the hood stuff and not really anything that is visible in the game! There are some additions nonetheless, which I want to show you today!

NEW GUI

The second biggest thing I worked on was the new hud. I decided to go with two panels. The first one is on the left and in it are all the inventories and controls of the player and also of the nearby machines and chests. The second one is on the right and this one is dedicated to crafting! Keep in mind that some areas of the crafting ui are still not done.

inventory crafting


CANOLA

Canola is needed to produce lubricant for the robot. It was relatively easy to add the canola plant into the game since I programmed all necessary components for it a long time ago.

head


CONTENT PACKAGES

The biggest thing I worked on since last time, maybe even since I started this project, were content packages. Content Packages are basically a bunch of files in a folder that make up the content in the game. Every single tile, entity, item or even recipe you see in the game is all loaded from files. This was a lot of work to do since I had to assign all the ids dynamically and make sure those ids don't clash with other content packages that are loaded. You could load hundreds of content packages at once and play with them in your world.

It is very easy to create one since you don't require coding experience. I made sure to make them very powerful but also easy to understand at the same time. All game objects are made up of components. A component defines a specific behaviour or property. Here is how the canola plant is defined:

canola def


It might seem a little bit complex at first but it is really not. If you look at every component individually and understand what it does it is really simple. One of my favourite components are the 'RestrictedPlacementComponent', which defines where a block is allowed to be placed, and the 'DropComponent', which is a powerful component for defining drops when the tile is broken.

The last thing I did with the content package system was to add recipes.

recipes


The plan is to have variations in recipes. The player can find different recipes of the same type, one is cheaper and the other one might be a bit more expensive. He has to make sure to use the cheapest one in his machines or even when he crafts himself.

To end things off, here is a little video of the new stuff. I really like the gui fade-in and fade-out.

Thank you for reading!

See you in my next post,

ProRed

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

News
Browse
News
New
Post news
Share
Related Games
Beyond Technology
Beyond Technology Adventure
Related Engines
libGDX
libGDX Commercial
Related Groups
Indie Gamers
Indie Gamers Hobbies & Interests with 1,510 members
Linux Gamers
Linux Gamers Fans & Clans with 2,970 members
PC Gamers
PC Gamers Hardware & Tech with 749 members