top of page
  • Writer's pictureCory

Capstone Chronicles - How to Kill a Robot Spider

Has your home also become the home of a lethal robot spider? Is it shooting down flies, ants and pretty much anything that moves in your area? Is it scaring your kids and small pets? Well fear not. We at Wrong Warp Games have come up with just the method to get rid of this pesky Arachno menace. First thing first, what you want to do is open up your trusty copy of Unity that is obviously already installed to your desktop. Then, you'll want to create a new class to hold all the relevant data to the destruction of the Arachnotron.

LaunchableData structure holds variables relevant to each piece on the spider's body

General data and functions for the sequence itself is stored here

After this, the next task is to build out a state machine and add a class for the explosion sequence. In order to keep this blog post from getting too long, I'll just write some pseudocode for what that sequence should look like: DeathSequence update()

{

if(electrocutionState)

{

createElectricityParticlesRandomly();

}

else if(smallExplosionState)

{

createSmallExplosionsRandomly();

}

else if(explodeState)

{

Explode();

}

}


Easy right??

For the explode function, its just a matter of adding rigidbodies to every launchable and shooting them off in a random direction away from the spider's body.


So long you bastard

However if, after the fact, you experience a sudden surge of guilt and disappointment in yourself for ending the life of an otherwise harmless mechanical arachind (as you should, you monster) don't worry! The WWG team has you covered. Simply reassemble the spider after the explosion in yet another loop that resets default locations, remove the rigidbodies you added, respawn them at a spawn point and voiala, the young spider will be returned to its original state. Thanks for reading! Tune in next time when we teach you how to kill a Champlain game studio student through a method called crunch time ;)


-Cory

16 views0 comments
bottom of page