}
}
}
}
//假死
this.Dead = function(n){
this.Player[n].state = 2;
document.getElementById("player"+n).style.color = "gray";
window.clearTimeout(this.DeadsetTimeOut[n])
this.DeadsetTimeOut[n] = setTimeout(this.ClassName+".Player["+n+"].state=1; document.getElementById('player"+n+"').style.color = '';", this.PlayerRecovery);
}
//爆炸的具体处理过程
this.DoBurst = function(x, y, dir){
var GetEquip = " ";
switch(this.Map[x][y])
{
case "k":
switch(this.Equip[this.GetRnd(this.Equip.length-1)])
{
case "n":
this.Map[x][y] = "n";
GetEquip = "<span style='color: green'>◎</span>"
break;
case "p":
this.Map[x][y] = "p";
GetEquip = "<span style='color: red'>☆</span>"
break;
default:
this.Map[x][y] = " ";
}
break;
case "#":
this.stop[dir] = 1;
return 0;
break;
default:
this.Map[x][y] = " ";
}
this.ReDrawBox(x, y, "<span style='color: red'>¤</span>");
for (var i=0; i<this.Player.length; i++)
{
if (this.Player[i].x == x && this.Player[i].y == y)
{
来源: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 2:09:15