A few weeks ago Adam did the unthinkable, he released a new build of the game!, and boy it was awesome. Currently we are still in Alpha state, but that shouldn’t stop us from posting a few screenshots of our work in progress.
The screenshot above shows the game closer to our intended release version: It displays a working version of our trusty GUI, most of the buildings we’ll end up using (we are still missing a lot of buildings though) and features 18 out of the 23 planned units we have for the game. We still need to work a lot of the 3d assets, so it’s placeholder country for almost everything 3d.
They are here. The heroic, technologically advanced and oppressive Thermocrats are now part of the game. It took a few good months to get all the animations in place, but this time we bested ourselves and came up with 7 new units for the game.
I talked previously how much a game object manager improved performance in Cairn, and I want to make sure anyone using Unity has the opportunity to use it in their game as well.
When I started researching a work around for Unitys Spawn & Destroy methods I came across a large number of pre-existing solutions. There are free scripts and expensive packages that could handle the issue, but I wanted the best of both. Something easy to use, something I can understand, and something free. This ment we had to grow our own solution, but I didn’t have to start from scratch.
Since the rest of Cairn is in C# I converted the script to that language. This allowed me to walk through the script and get a better handle on what it was doing.
Overall it’s pretty simple. Build a stack of Game Objects, mark them as active or inactive, then when something requests a new object determine if one needs to be created or if one needs to be reused.
I changed it handle more like the built Spawn & Destroy functions within Unity. The new script takes in a prefab, using it’s name to create a Game Object Pool for that specific prefab, and handles the stack of objects as the original script did from there.
You’ll notice some string manipulation and comparison that could be improved or edited, but for what I was trying to accomplish it works like a charm.
Updating the blog is hard!. So here’s a bunch of small updates, because we have A LOT of loose files going around, specially images that we can’t really place in a full blown, dignified blog post, but that will give our fanbase (our moms?) something to check.
Because there’s nothing worst than an indie studio that doesnt update often.