home *** CD-ROM | disk | FTP | other *** search
- call("pro");
- fadescreen();
- stopAllSounds();
- _global.r = this;
- _global.p = this.pl;
- attachmovie("cy","cy",800001);
- attachmovie("progressbar","progressbar",800020);
- progressbar._x = 16;
- progressbar._y = 385;
- _global.c = this.cy;
- c._y = 375;
- c._x = 300;
- cbx = c._x - 50;
- inv = 0;
- hit = 0;
- invhitdelay = 50;
- energymax = 100;
- energy = energymax;
- energyless = 10;
- score = 0;
- point = 50;
- aimrange = 150;
- autofire = 0;
- noshot = 0;
- shootingani = 0;
- r.cheat1 = 0;
- bombrange = 175;
- r.ed = 500000;
- r.wd = 1000000;
- walldelay = 10;
- w = walldelay;
- r.cd = 900000;
- ceidelay = 10;
- cdelay = ceidelay;
- b = 800000;
- b2 = 400000;
- distance = 100;
- bul = [];
- hitrange = 40;
- p.attachmovie("cei","cei" + r.cd,r.cd);
- p["cei" + r.cd]._x = 300;
- p["cei" + r.cd]._y = 0;
- p["cei" + r.cd].gotoAndPlay(12);
- r.cd--;
- p.attachmovie("cei","cei" + r.cd,r.cd);
- p["cei" + r.cd]._x = 300;
- p["cei" + r.cd]._y = 0;
- p["cei" + r.cd].gotoAndPlay(1);
- r.cd--;
- p.attachmovie("wall1","wall1" + r.wd,r.wd);
- p["wall1" + r.wd]._x = 100;
- p["wall1" + r.wd]._y = 380;
- r.wd--;
- p.attachmovie("wall1","wall1" + r.wd,r.wd);
- p["wall1" + r.wd]._x = 500;
- p["wall1" + r.wd]._y = 380;
- p["wall1" + r.wd]._xscale = -100;
- r.wd--;
- enemyname = ["","bomb","bomb2","bomb3","bomb4","shu","s2","atlas","bonus"];
- enemyarray = [];
- var i = 0;
- while(i < 8)
- {
- enemyarray.push(1,0);
- i++;
- }
- enemyarray.push(1,1,1,1,1,1,1,1,1,1);
- var i = 0;
- while(i < 12)
- {
- enemyarray.push(2,0);
- i++;
- }
- enemyarray.push(0,0);
- enemyarray.push(5,5,5,5,5,5,5,5,5,5,5,5,5);
- var i = 0;
- while(i < 12)
- {
- enemyarray.push(4,0,0);
- i++;
- }
- enemyarray.push(0,0);
- enemyarray.push(8,0);
- enemyarray.push(1,1,1,1,1,1,1,1);
- var i = 0;
- while(i < 15)
- {
- enemyarray.push(1,3,0);
- i++;
- }
- enemyarray.push(5,5,5,5,5,5,5,5,5,5,5,5,5);
- enemyarray.push(2,2,2,2,2,2,2,2);
- enemyarray.push(0,0);
- enemyarray.push(8);
- var i = 0;
- while(i < 12)
- {
- enemyarray.push(6,6,0);
- i++;
- }
- enemyarray.push(0,0,0);
- enemyarray.push(7);
- enemyarray.reverse();
- enemies = [];
- totalenemy = enemyarray.length;
- edelay = 18;
- d = edelay;
- r.createEmptyMovieClip("sfx",501000);
- allsfx = ["zshot","zbonus","zfall","zpunch","zhit","zboom","zboom3"];
- var i = 0;
- while(i < allsfx.length)
- {
- r[allsfx[i]] = new sound(sfx);
- r[allsfx[i]].attachsound(allsfx[i]);
- i++;
- }
- r.createEmptyMovieClip("sfx2",501001);
- r.zloop = new sound(sfx2);
- r.zloop.attachsound("zloop");
- r.zloop.attachsound("zloop");
- r.createEmptyMovieClip("sfx3",501003);
- r.zboss = new sound(sfx3);
- r.zboss.attachsound("zboss");
- r.createEmptyMovieClip("sfx4",501004);
- r.zlose = new sound(sfx4);
- r.zlose.attachsound("zlose");
- r.createEmptyMovieClip("sfx5",501005);
- r.zwin = new sound(sfx5);
- r.zwin.attachsound("zwin");
- zloop.start(0,999999);
- onenterframe = function()
- {
- r.noshot--;
- if(r.noshot == 0)
- {
- r.shootingani = 1;
- r.zshot.start();
- var bx = c._x;
- var by = c._y - 50 - r.aim * 2;
- r.attachmovie("blast","blast" + r.b,r.b);
- r["blast" + r.b]._x = bx;
- r["blast" + r.b]._y = by;
- r["blast" + r.b].dep = r.b;
- r["blast" + r.b].ys = -3 - 0.6 * r.aim;
- r["blast" + r.b].b._yscale = 70 + r.aim;
- var ym = r._ymouse;
- if(ym < 120)
- {
- ym = 120;
- }
- else if(ym > 275)
- {
- ym = 275;
- }
- r["blast" + r.b].ypoint = ym;
- r.bul.push("blast" + r.b);
- r.b--;
- }
- if(r.autofire)
- {
- if(r.noshot < 0)
- {
- r.noshot = 4;
- }
- }
- d--;
- if(d < 0)
- {
- d = r.edelay;
- if(enemyarray.length)
- {
- var etipe = r.enemyname[r.enemyarray.pop()];
- r.attachmovie(etipe,"e" + r.ed,r.ed);
- r.enemies.push("e" + r.ed);
- r.ed--;
- }
- }
- w--;
- if(!w)
- {
- w = walldelay;
- p.attachmovie("wall1","wall1" + r.wd,r.wd);
- p["wall1" + r.wd]._x = 100;
- p["wall1" + r.wd]._y = 380;
- r.wd--;
- p.attachmovie("wall1","wall1" + r.wd,r.wd);
- p["wall1" + r.wd]._x = 500;
- p["wall1" + r.wd]._y = 380;
- p["wall1" + r.wd]._xscale = -100;
- r.wd--;
- }
- cdelay--;
- if(!cdelay)
- {
- cdelay = ceidelay;
- p.attachmovie("cei","cei" + r.cd,r.cd);
- p["cei" + r.cd]._x = 300;
- p["cei" + r.cd]._y = 0;
- r.cd--;
- }
- if(r.inv > 0)
- {
- r.inv--;
- }
- };
- stop();
-