home *** CD-ROM | disk | FTP | other *** search
- var cannons = new Array(c1,c2,c3);
- c1.ctype = "proj_enemy_fire";
- c2.ctype = "proj_enemy_ice";
- c3.ctype = "proj_enemy_steel";
- var num_cannons = 3;
- var cannonNdx = random(num_cannons);
- var bod = cannons[cannonNdx];
- var ndx = 0;
- while(ndx < num_cannons)
- {
- if(bod != cannons[ndx])
- {
- cannons[ndx]._alpha = 0;
- }
- ndx++;
- }
- var ammo = bod.ctype;
-