易码技术论坛

 找回密码
 加入易码
搜索
12
返回列表 发新帖
楼主: Isword

一个好玩的FLASH游戏!!

[复制链接]
发表于 2007-2-16 13:25:02 | 显示全部楼层
破解!!!!!!!!!!!
MovieClip.prototype.getclosepos = function (x, space)
{
   var sp = 40 + random(Math.floor(space - 40));
   if (random(100) > 50)
   {
      var posx = x + sp;
      if (posx > 700)
      {
        posx = x - sp;
      } // end if
   }
   else
   {
      var posx = x - sp;
      if (posx < 50)
      {
        posx = x + sp;
      } // end if
   } // end if
   return(posx);
};
MovieClip.prototype.make = function (x, y, tipe)
{
   if (tipe == undefined)
   {
      var tipe = "bell";
   } // end if
   m.attachMovie(tipe, "bell" + r.ed, r.ed, {_x: x, _y: y});
   r.lastbell = m["bell" + r.ed];
   r.skala = Math.max(r.minskala, r.skala - 0.500000);
   r.ed++;
};
MovieClip.prototype.initbird = function ()
{
   var t = this;
   r.all.push(t);
   t.ys = r.bellspeed;
   t.xs = r.birdspeed;
   if (random(100) > 50)
   {
      t.xs = -t.xs;
      t._xscale = -100;
   } // end if
   t.onEnterFrame = function ()
   {
      t._y = t._y + t.ys;
      t._x = t._x + t.xs;
      if (t._x < r.xmin)
      {
        t._x = r.xmin;
        t.xs = -t.xs;
        t._xscale = -t._xscale;
      }
      else if (t._x > r.xmax)
      {
        t._x = r.xmax;
        t.xs = -t.xs;
        t._xscale = -t._xscale;
      } // end if
      if (t.hit)
      {
        r.all.removevalue(t);
        t.gotoAndPlay("hit");
      }
      else if (t._y > -r.ynow + 700)
      {
        r.all.removevalue(t);
        t.removeMovieClip();
      } // end if
   };
   t.stop();
};
MovieClip.prototype.initbell = function ()
{
   var t = this;
   r.all.push(t);
   t.ys = r.bellspeed;
   t.onEnterFrame = function ()
   {
      t._y = t._y + t.ys;
      if (t.hit)
      {
        r.all.removevalue(t);
        t.gotoAndPlay("hit");
      }
      else if (t._y > 300)
      {
        t._alpha = t._alpha - 10;
        if (t._alpha <= 0)
        {
           r.all.removevalue(t);
           t.removeMovieClip();
        } // end if
      }
      else if (t._y > -r.ynow + 700)
      {
        r.all.removevalue(t);
        t.removeMovieClip();
      } // end if
   };
   t.stop();
};
movieclip.prototype.ceklimits = function ()
{
   this.nx = Math.max(this.nx, r.xmin);
   this.nx = Math.min(this.nx, r.xmax);
   this.ny = Math.max(this.ny, r.ymin);
   this.ny = Math.min(this.ny, r.ymax);
};
Array.prototype.removeElement = function (i)
{
   if (i == null)
   {
      i = 0;
   } // end if
   var r = this;
   var j = i;
   while (j < this.length - 1)
   {
      this[j] = this[j + 1];
      j++;
   } // end while
   this.pop();
   return(r);
};
Array.prototype.removeValue = function (a)
{
   var i = 0;
   while (i < this.length)
   {
      if (a == this)
      {
        this.removeElement(i);
      } // end if
      i++;
   } // end while
};
Array.prototype.randomize = function ()
{
   return(this.sort(function (a, b)
   {
      return(Math.floor(Math.random() * 2) == 0 ? (1) : (-1));
   }));
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clone = function ()
{
   if (this instanceof Array)
   {
      var to = [];
      var i = 0;
      while (i < this.length)
      {
        to = typeof(this) == "object" ? (this.clone()) : (this);
        i++;
      } // end while
   }
   else if (this instanceof XML || this instanceof MovieClip)
   {
      var to = null;
      trace("Warning! Object.clone can not be used on MovieClip or XML objects");
   }
   else
   {
      var to = {};
      for (var i in this)
      {
        to = typeof(this) == "object" ? (this.clone()) : (this);
      } // end of for...in
   } // end if
   return(to);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
Movieclip.prototype.fadescreen = function (speed)
{
   if (!speed)
   {
      var speed = 5;
   } // end if
   r.createEmptyMovieClip("dark", 100001);
   var d = r.dark;
   var alp = _level0.bg._alpha;
   with (d)
   {
      lineStyle(1, 0, 100);
      beginfill(0, 100);
      moveto(-5000, -5000);
      lineto(5000, -5000);
      lineto(5000, 5000);
      lineto(-5000, 5000);
      endfill();
      d.onEnterFrame = function ()
      {
        if (alp > 0)
        {
           _alpha = _alpha - speed;
        } // end if
        if (_alpha <= 0)
        {
           removeMovieClip("");
           stop();
        } // end if
      };
   } // End of with
};
Movieclip.prototype.findang = function (dx, dy)
{
   return(deg(math.atan2(dy, dx)));
};
Movieclip.prototype.rad = function (qdeg)
{
   return(qdeg * 0.017453);
};
Movieclip.prototype.deg = function (qrad)
{
   return(qrad * 57.295780);
};
Color.prototype.setBrightness = function (value)
{
   this.setTransform({ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0});
   var trans = this.getTransform();
   var percent = Math.abs(value) / 100;
   var brightnessColor = value > 0 ? (255) : (0);
   with (trans)
   {
      ra = ra - ra * percent;
      ga = ga - ga * percent;
      ba = ba - ba * percent;
      rb = rb + (brightnessColor - rb) * percent;
      gb = gb + (brightnessColor - gb) * percent;
      bb = bb + (brightnessColor - bb) * percent;
   } // End of with
   this.setTransform(trans);
};
Color.prototype.resetcolor = function ()
{
   this.setTransform({ra: 100, rb: 0, ga: 100, gb: 0, ba: 100, bb: 0});
};
Sound.prototype.fade = function (fadeType, fadeDuration)
{
   this.fadeDuration = fadeDuration * 1000 / 100;
   this.fadeType = fadeType;
   this.currentVolume = this.getVolume();
   this.intID = setInterval(function (thisObj)
   {
      thisObj.doFade(thisObj.fadeType);
   }, this.fadeDuration, this);
   this.doFade = function (fadeType)
   {
      if (fadeType == "out")
      {
        this.setVolume(this.currentVolume--);
        if (this.getVolume() <= 0)
        {
           clearInterval(this.intID);
        } // end if
      }
      else if (fadetype == "in")
      {
        this.setVolume(this.currentVolume++);
        if (this.getVolume() >= 100)
        {
           clearInterval(this.intID);
        } // end if
      } // end if
   };
};
movieclip.prototype.wait = function (delay)
{
   this.createEmptyMovieClip("wdl", 55555);
   this.wdl.delay = delay;
   this.wdl.onenterframe = function ()
   {
      this.delay--;
      if (!this.delay)
      {
        delete this["onenterframe"];
        this._parent.play();
        this.removeMovieClip();
      } // end if
   };
   this.stop();
};
MovieClip.prototype.savecookie = function (vari, value)
{
   var so = SharedObject.getLocal("oribells", "/");
   so.data[vari] = value;
   so.flush();
};
MovieClip.prototype.loadcookie = function (vari)
{
   var so = SharedObject.getLocal("oribells", "/");
   if (so.data[vari] != null)
   {
      return(so.data[vari]);
   }
   else
   {
      return(false);
   } // end if
};
call("pro");
fadescreen();
stopAllSounds();
music = 0;
onMouseDown = function ()
{
   delete onMouseDown;
   r.gotoAndPlay("ins");
};
stop();
call("pro");
fadescreen();
onMouseDown = function ()
{
   delete onMouseDown;
   r.gotoAndPlay("start");
};
stop();
_global.m = this.map;
_global.m2 = this.map2;
_global.p = m.player;
delete onEnterFrame;
call("pro");
fadescreen(8);
bellspeed = 1;
birdspeed = 3;
birdspacing = 2000;
birdnext = 1000;
got = 0;
skala = 160;
minskala = 70;
pspeed = 10;
jumppower = -22;
bouncepower = -18;
grav = 1;
nojump = 0;
ang = 0;
nil = 0;
ymin = 40;
ymax = 360;
xmin = 30;
xmax = 720;
ed = 1000;
all = [];
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zhit", "zbonus", "ztink"];
var i = 0;
while (i < allsfx.length)
{
   r[allsfx] = new sound(sfx);
   r[allsfx].attachsound(allsfx);
   i++;
} // end while
if (!music)
{
   music = 1;
   r.createEmptyMovieClip("sfx2", 60002);
   r.zloop = new sound(sfx2);
   r.zloop.attachsound("zloop");
   r.zloop.start(0, 99999);
} // end if
bxspacing = 150;
byspacing = 80;
make(50 + random(650), 200);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
r.ynow = 0;
onEnterFrame = function ()
{
   r.ynow = Math.max(0, -p._y + 300);
   if (r.vy > 30)
   {
      div = 2;
      if (p._y > 0)
      {
        m._y = 0;
      }
      else
      {
        m._y = m._y + (r.ynow - m._y) / div;
      } // end if
   }
   else
   {
      div = 10;
      m._y = m._y + (r.ynow - m._y) / div;
   } // end if
   if (p._y - r.lastbell._y < 500)
   {
      if (r.ynow > r.birdnext)
      {
        r.birdnext = r.birdnext + r.birdspacing;
        make(300, r.lastbell._y - r.byspacing, "bird");
      }
      else if (r.bxspacing < 400)
      {
        make(getclosepos(r.lastbell._x, r.bxspacing), r.lastbell._y - r.byspacing);
        r.bxspacing = r.bxspacing + 5;
      }
      else
      {
        make(50 + random(650), r.lastbell._y - r.byspacing);
      } // end if
   } // end if
   if (r.nojump > 0)
   {
      r.nojump--;
   } // end if
};
stop();
发表于 2007-2-16 21:21:03 | 显示全部楼层
郁闷 玩了半天也就30W最多 等回学校用MX518玩。。。
发表于 2007-2-16 21:52:55 | 显示全部楼层
590W了 继续继续~~
发表于 2007-2-16 22:24:11 | 显示全部楼层
916W了~~继续。。。
发表于 2007-2-16 22:24:32 | 显示全部楼层
头大了~好吧~~~待续。。。
发表于 2007-5-21 16:18:28 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2007-5-21 17:15:56 | 显示全部楼层
好玩~
发表于 2007-6-13 22:53:04 | 显示全部楼层
靠..玩到溢出了..咋办....内存不够用..电脑提示分数太高...完整显示不了..让再来一条2T的内存来存放分数...无语...
............
发表于 2007-6-14 08:00:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2007-6-14 21:02:51 | 显示全部楼层
好难,我才1W来分。。。。。。
发表于 2007-6-15 10:45:11 | 显示全部楼层
.....n多月前的,我玩的时候,每次都一时高兴,摔死
 楼主| 发表于 2007-2-10 20:29:35 | 显示全部楼层 |阅读模式
  http://www.doease.cn/0bells.swf
一个好玩的FLASH游戏!!

我的分数哦!!

我的分数哦!!
您需要登录后才可以回帖 登录 | 加入易码

本版积分规则

Archiver|手机版|小黑屋|EMAX Studio

GMT+8, 2025-6-18 17:56 , Processed in 0.018012 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表