document.getElementById("bulb"+n).style.display = 'none';
this.Bulb[n].display = 0;
}
//不断更新炸弹状态
this.ShowBulb = function(){
for (var i=0; i<this.BulbMax; i++)
{
var obj = document.getElementById("bulb"+i);
if (this.Bulb[i].wait-- > 0)
{
obj.style.left = this.Bulb[i].x*this.BoxWidth;
obj.style.top = this.Bulb[i].y*this.BoxHeight;
obj.style.display = "";
if (obj.tendency > 0)
{
this.Bulb[i].size++;
if (this.Bulb[i].size > this.Bulb[i].size_max)
{
obj.tendency = 0;
}
}
else
{
this.Bulb[i].size--;
if (this.Bulb[i].size < this.Bulb[i].size_min)
{
obj.tendency = 1;
}
}
obj.style.fontSize = this.Bulb[i].size+"px";
}
else if (this.Bulb[i].display > 0)
{
this.Burst(i);
}
}
}
this.Control = function(){
switch(event.keyCode){
//player 1
case 37: //left
this.Move(-1, 0, 0);
break;
来源: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 6:02:11