home *** CD-ROM | disk | FTP | other *** search
- framesperworld = 7;
- moveme = function()
- {
- this.x -= this.spd * _root.smult;
- if(this.x < - this._width)
- {
- if(this.other == undefined)
- {
- this.x += 590 + this._width;
- }
- else
- {
- if(this._name == "b1" || this._name == "b2")
- {
- var _loc3_ = (60 - _root.sec) / 60;
- where = (_root.world - 1) * framesperworld + random(framesperworld) + 1;
- this.gotoAndStop(where);
- }
- this.x = this.other.x + this.other._width - this.spd * 2 * _root.smult;
- }
- }
- this._x = Math.floor(this.x);
- };
- initclip = function(clip, spd, mother)
- {
- clip.spd = spd;
- clip.onEnterFrame = moveme;
- clip.other = mother;
- clip.x = clip._x;
- };
- initclip(g1,5,g2);
- initclip(g2,5,g1);
- initclip(b1,3,b2);
- initclip(b2,3,b1);
- b1.gotoAndStop(1);
- b2.gotoAndStop(1);
- initclip(t1,1);
- initclip(t2,1);
- initclip(m1,0.5,m2);
- initclip(m2,0.5,m1);
- k = new Object();
- k.onKeyUp = function()
- {
- if(Key.getAscii() == 49)
- {
- _root.setgamequality(1);
- }
- else if(Key.getAscii() == 50)
- {
- _root.setgamequality(2);
- }
- else if(Key.getAscii() == 51)
- {
- _root.setgamequality(3);
- }
- };
- Key.addListener(k);
-