this.Dead(i);
}
}
setTimeout(this.ClassName+".ReDrawBox("+x+", "+y+", \""+GetEquip+"\");", this.BulbBurst);
}
//连爆
this.OtherBurst = function(x, y, n){
for (var i=0; i!=n,i<this.BulbMax; i++ )
{
if (this.Bulb[i].x == x && this.Bulb[i].y == y && this.Bulb[i].display == 1) this.Bulb[i].wait = 0;
}
}
//爆炸
this.Burst = function(n){
var x = this.Bulb[n].x;
var y = this.Bulb[n].y;
if (this.Player[this.Bulb[n].player].remain < this.Player[this.Bulb[n].player].popo) this.Player[this.Bulb[n].player].remain++;
this.DoBurst(x, y);
this.stop[0] = 0; this.stop[1] = 0; this.stop[2] = 0; this.stop[3] = 0;
for (var i=1; i<=this.Bulb[n].power; i++)
{
//right
x += i;
if (!this.stop[0] && x < this.MapMaxX-1)
{
this.DoBurst(x, y, 0); this.OtherBurst(x, y, i);
}
x -= i;
//up
y += i;
if (!this.stop[1] && y < this.MapMaxY-1)
{
this.DoBurst(x, y, 1); this.OtherBurst(x, y, i);
}
y -= i;
//left
x -= i;
if (!this.stop[2] && x > 0)
{
this.DoBurst(x, y, 2); this.OtherBurst(x, y, i);
}
x += i;
//down
y -= i;
if (!this.stop[3] && y > 0)
{
this.DoBurst(x, y, 3); this.OtherBurst(x, y, i);
}
y += i;
}
来源:upschool.com.cn
作者:hxyman
关键字:脚本游戏,web泡泡堂,人机大战
发表日期:2007-1-16 23:03:13
网页显示有限 阅读全文请下载本文完整版WORD文档
上一篇:javascript读取RSS数据 下一篇:预载Gif的2个JS代码(非常有用)
共9页
9 7 [
1] [
2] [
3] [
4] [
5] [
6] [
7] [
8] [
9]
8 :>
2008-11-22 8:10:13