Where is Cairn? Welcome to Myos.

editorial-08

Cairn takes place on a beautiful and horrible world known as Myos.  We wanted Myos to make life hard on everyone, no matter what part of the world you live in, the struggle to survive is a constant.  Once the various global dangerous were in place the world came to life with a long mysterious history, diverse locations, and then we filled it with various cultures.  I approached Myos almost as a character of it’s own, something that threatens everyone from the background.  Let’s dive into the details of all the things I’ve mentioned above.

Continue reading

The Fey and the Spiders arise!

thewispandthespidersIt’s that time when newer sprites show their face around Cairn. Previously we went through the exciting Free Blades and the awesome Thermocrats. Now it’s time for sprites that have no human form: these are the Fey and the mechanical Spiders.

Coming up, in Embalmit.com, your source for that sweet sweet, badass retro RTS: Cairn!

Continue reading

Evolution of the GUI – Part 1

Hey everybody!

I know we have been a little quiet since we’re working on the new beta release! It’s going to be fuckin’ badass, I promise. Until then, we are going to tide you over with some inside looks into the development of Cairn. The first area we’re starting with is the GUI. Over the next several days I’ll be writing about the change of our GUI from the bare bones version, to the super slick version we have now.

Continue reading

Enter the Thermocrats

thermocratspritescometh

 

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.

Continue reading

Unity3D Game Object Pool Manager

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.

I found a great script on the Von Lehe Creative Blog. They had a great object manager, but you needed a separate script for each object you wished to pool and it was written in javascript.

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.

The script is below, so enjoy!

Continue reading