break;
case "p":
this.Map[this.Player[who].x][this.Player[who].y] = " ";
this.ReDrawBox(this.Player[who].x, this.Player[who].y, " ");
this.Player[who].power++;
break;
}
for (var i=0; i<this.Player.length; i++)
{
if (this.Player[i].x == this.Player[who].x && this.Player[i].y == this.Player[who].y)
{
this.Campaign(who, i);
}
}
}
else
{
this.Player[who].x -= addx;
this.Player[who].y -= addy;
}
}
//安放炸弹
this.Fix = function(who){
if (this.Player[who].state != 1) return 0;
var x = this.Player[who].x;
var y = this.Player[who].y;
var str = " 01";
if (this.Player[who].remain > 0 && str.indexOf(this.Map[x][y]) != -1)
{
for (var i=0; i<this.BulbMax; i++)
{
if (0 == this.Bulb[i].display)
{
this.Bulb[i] = new Bulb(x, y);
this.Bulb[i].player = who;
this.Bulb[i].power = this.Player[who].power;
this.Bulb[i].wait = this.BulbWait;
this.Bulb[i].display = 1;
this.Map[x][y] = "b";
this.Player[who].remain--;
return 0;
来源: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-23 20:49:08