home *** CD-ROM | disk | FTP | other *** search
- function BulletSpawn(x, y, rot)
- {
- duplicateMovieClip(_root.Line,"Bullet",16386);
- b = Math.random() * 10 - 5;
- _root.Bullet._x = x;
- _root.Bullet._y = y;
- _root.Bullet._rotation = rot + b;
- _root.Bullet._xscale = Facing * 50;
- _root.Bullet.type = 1;
- }
- function EBullSpawn(x2, y2, rot2, facing2)
- {
- duplicateMovieClip(_root.Line,"EBullet",16389);
- b2 = Math.random() * 10 - 5;
- _root.EBullet._x = x2;
- _root.EBullet._y = y2;
- _root.EBullet._rotation = rot2 + b2;
- _root.EBullet._xscale = facing2 * 50;
- _root.Ebullet.type = 2;
- }
- function GrenadeSpawn()
- {
- _global.Grenading = true;
- duplicateMovieClip(_root.agrenade,"Grenade",16390);
- _root.Grenade._visible = true;
- _root.Grenade._x = _root.Char._x;
- _root.Grenade._y = _root.Char._y;
- _root.Grenade._xscale = Facing * 40;
- }
- function BoomSpawn(x, y)
- {
- duplicateMovieClip(_root.Boom,"Bang",16391);
- _root.Bang._x = x;
- _root.Bang._y = y;
- }
- function ImpactSpawn()
- {
- if(prob(2))
- {
- duplicateMovieClip(_root.Lines,"Impact",16385);
- }
- else
- {
- duplicateMovieClip(_root.Lines2,"Impact",16385);
- }
- _root.Impact._x = _root.Bullet._x;
- _root.Impact._y = _root.Bullet._y;
- _root.Impact._rotation = _root.Bullet._rotation;
- _root.Impact._xscale = _root.Bullet._xscale;
- }
- function BloodSpawn()
- {
- duplicateMovieClip(_root.Liness,"Blood",16404);
- _root.Blood._x = _root.Bullet._x;
- _root.Blood._y = _root.Bullet._y;
- _root.Blood._rotation = _root.Bullet._rotation;
- _root.Blood._xscale = _root.Bullet._xscale;
- }
- function eBloodSpawn()
- {
- duplicateMovieClip(_root.Liness,"Blood",16388);
- _root.Blood._x = _root.EBullet._x;
- _root.Blood._y = _root.EBullet._y;
- _root.Blood._rotation = _root.EBullet._rotation;
- _root.Blood._xscale = _root.EBullet._xscale;
- }
- function SpawnBaddies(x)
- {
- _global.Baddies = _global.Baddies + 1;
- i = 1;
- n = 1;
- while(n == 1 && i <= Difficult)
- {
- i++;
- n = BaddieSlots[i - 1];
- }
- _global.BaddieSlots[i - 1] = 1;
- if(x == 1)
- {
- duplicateMovieClip(_root.Soldier,["Enemy" + i],16384 + (i + 7));
- }
- if(x == 2)
- {
- duplicateMovieClip(_root.Repeller,["Enemy" + i],16384 + (i + 7));
- }
- _root["Enemy" + i]._x = _root.tehground._x + 300 + random(100) * 17;
- _root["Enemy" + i]._y = 72;
- _root["Enemy" + i].number = i;
- }
- function SpawnTehMinez(x, y)
- {
- duplicateMovieClip(_root.TehSpiderzMyuhn,"TehMine",16432);
- _root.TehMine._x = x;
- _root.TehMine._y = y;
- }
- function Prob(x)
- {
- if(random(x) == 1)
- {
- return true;
- }
- }
- Stande_local_data = SharedObject.getLocal("user_data");
- if(Stande_local_data.data.HighScore == undefined)
- {
- _global.HighScore = 0;
- Stande_local_data.data.HighScore = 0;
- }
- else
- {
- _global.HighScore = Stande_local_data.data.HighScore;
- }
- if(Stande_local_data.data.Quality == undefined)
- {
- _quality = "LOW";
- Stande_local_data.data.Quality = "LOW";
- }
- else
- {
- _quality = Stande_local_data.data.Quality;
- }
- if(Stande_local_data.data.SeeBack == undefined)
- {
- _global.SeeBack = true;
- Stande_local_data.data.SeeBack = true;
- }
- else
- {
- _global.SeeBack = Stande_local_data.data.SeeBack;
- }
- if(Stande_local_data.data.PlayMusic == undefined)
- {
- _global.PlayMusic = true;
- Stande_local_data.data.PlayMusic = true;
- }
- else
- {
- _global.PlayMusic = Stande_local_data.data.PlayMusic;
- }
- if(Stande_local_data.data.KeyBind == undefined)
- {
- _global.KeyBind = 1;
- Stande_local_data.data.KeyBind = 1;
- }
- else
- {
- _global.KeyBind = Stande_local_data.data.KeyBind;
- }
- if(Stande_local_data.data.Difficult == undefined)
- {
- _global.Difficult = 3;
- Stande_local_data.data.Difficult = 3;
- }
- else
- {
- _global.Difficult = Stande_local_data.data.Difficult;
- }
- Stande_local_data.flush();
- stop();
-