Game Development Reference
In-Depth Information
Add the ScoreWatcher component to the Score object. Now, when you play the
game and defeat the enemies, you can watch the score increase by 25 points each
time! Yeeee-haw!
Sorry 'bout that... shootin' things for points always makes me feel a bit Texan.
Enemies - forever!
So, you defeated all your enemies and now find yourself without enemies to defeat.
This gets boring fast; so, let's find a way to get more enemies to whack. To do this,
we are going to create enemy spawn points in the form of nifty rotating vortexes
and have them spit out enemies whenever we kill other enemies. It shall be glorious,
and we'll never be without friends to give gifts—and by gifts, we mean bullets.
First things first. We need to make a cool-looking vortex. This vortex will be
a stacked, animated visual FX object that is built for a 2D world. Don't worry,
we've got you covered on textures, so please go through the following steps:
1.
Import the ones in the assets folder under Sprites\Vortex .
2.
Create a new GameObject called Vortex and add all three of the Vortex
sprites in it, with each of their Position values set to X:0 , Y:0 , and Z:0 .
3.
Adjust their Order in Layer values so that the Vortex_Back child is set to 10 ,
Vortex_Center is set to 11 , and Vortex_Front is set to 12 . You should
now have an object that looks something like the following screenshot:
 
Search WWH ::




Custom Search