<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Hxyman Popo Ver 1.0</title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="Hxyman">
<style>
<!--
body { font-size: 8pt; font-family: Arial }
-->
</style>
</head>
<body>
<span id=Canvas></span>
<SCRIPT LANGUAGE="JavaScript">
<!--
//WEB泡泡堂(javascript)
//2006-9-5
//Hxyman QQ:86815260 EMail:Hxyman at yahoo.com.cn
function Player(x, y)
{
this.x = x;
this.y = y;
this.popo = 1; //可放泡泡数
this.remain = 1; //剩余泡泡数
this.power = 1; //威力
this.speed = 10; //速度
this.state = 1; //正常-1 假死-2 真死-0
}
function Bulb(x, y)
{
this.display = 0;
this.player = -1;
this.wait = 0; //还剩多少时间爆破
this.power = 1; //威力
this.size = 40;
this.size_max = 40;
this.size_min = 38;
this.tendency = 0;
this.x = x;
this.y = y;
}
function Popo(ClassName)
{
this.GetRnd = function(Max){return Math.round(Math.random()*Max)}
this.ClassName = ClassName;
this.SetMap = new Array();
this.SetMap[0] = new Array(
"########",
"#0kkkkk#",
"# k k#",
"#kk k #",
"#kk k #",
"#kk kk1#",
"########"
);
this.SetMap[1] = new Array(
"##########################",
"#0#kkkkkkkkkkkkkkkkkkkkkk#",
"# kkk kkkkkkkkkkkkkkk#",
"#kk kk k#kk kkk k#",
"# kk k#kkkkkkkkk #",
"#kk kkk k#kk kkk k#",
"# kk k#kkkkkkkkk #",
"#kk kkk kkkk kkk k#",
"# kk kkkkkkkkkkk #",
"#kk kkk kkkk kkk k#",
"# kk kkkkkkkkkkk #",
"# kkk kkkkkkkkkkkkkkk#",
"#kk kkk kkkk kkk k#",
"# kk kkkkkkkkkkk #",
"#kk kkk kkkk kkk k#",
"# kk kkkkkkkkkkk #",
"#kk kkk kkkk kkk k#",
"# kk kkkkkkkkkkk #",
"#kkkkk kkkkkkkkkkkkkkkkk1#",
"##########################"
);
this.SetMap[1] = new Array(
"##########################",
来源: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-10-16 4:24:40