#stage {
margin:0 auto;
border-left:1px solid #666;
border-top:1px solid #666;
vertical-align:middle;
text-align:center;
}
.lv1 {
width:300px;
height:300px;
}
.lv2 {
width:480px;
height:480px;
}
.lv3 {
width:900px;
height:480px;
}
.map > div {
background-color:#ccc;
float:left;
}
.wait {
width:22px;
height:22px;
border:4px solid #888;
border-top-color:#fff;
border-left-color:#FFF;
}
.clear {
width:29px;
height:29px;
border-right:1px solid #888;
border-bottom:1px solid #888;
line-height:29px;
font-size:18px;
font-weight:bold;
}
设置等级:暂时只有三个等级,无法自定义地图(太懒没改 之后会更)
setlevel(prompt("请输入等级(1-3):"));开始新游戏:根据等级创建新地图
newgame();
绘制地图:使用div绘制地图
paintmap();