game html5 tafang V1

瓜瓜東西發表於2014-12-23

1  塔防遊戲 V1

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	var tf={
		init:function(){
			
		},	
	};
	//武器
	var wp ={
			
	};
	//敵人
	var diren={
		xiaoren:{
			name:"",
			type:"diren",
			speed:10,
			blood:100,
			demage:10,
			src:"",//如果是圖片用圖片代替
			desc:"",//如果不是圖片用圖形代替
			width:10,
			height:10,
			color:"blue",
		},
		qiangdao:{
			name:"",
			type:"diren",
			speed:12,
			blood:110,
			demage:12,
			src:"",//如果是圖片用圖片代替
			desc:"",//如果不是圖片用圖形代替
			width:10,
			height:10,
			color:"blue",
		},
		//強盜頭
		qiangdaotou:{
			name:"",
			type:"diren",
			speed:12,
			blood:220,
			demage:13,
			src:"",//如果是圖片用圖片代替
			desc:"",//如果不是圖片用圖形代替
			width:10,
			height:10,
			color:"black",
		},
		tufei:{
			name:"",
			type:"diren",
			speed:13,
			blood:120,
			demage:14,
			src:"",//如果是圖片用圖片代替
			desc:"",//如果不是圖片用圖形代替
			width:10,
			height:10,
			color:"blue",
		},
		tufeitou:{
			name:"",
			type:"diren",
			speed:14,
			blood:240,
			demage:15,
			src:"",//如果是圖片用圖片代替
			desc:"",//如果不是圖片用圖形代替
			width:10,
			height:10,
			color:"black",
		},
		
	};
	//結構
	var jiegou={
		type:"diren",
		drjg:{
			blood:"",
			d:"",
		},
		zjjg:{
			
		},
	}
</script>
</head>
<body>
	
</body>
</html>


相關文章