<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>快來打我呀!</title>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<style>
body, canvas, div {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
</style>
</head>
<body style="padding:0; margin: 0; background: #000;">
<canvas id="gameCanvas" width="640" height="960"></canvas>
<div style="position:fixed; bottom:10px; left:0px; width:100%; text-align:center;"><a href="javascript:void(0);" onClick="clickMore();">更多游戏</a></div>
<script src="cocos2d.js"></script>
<script language=javascript>
var mebtnopenurl = 'http://game.ikongzhong.cn';
var thegameurl ="http://game.ikongzhong.cn/games/dwy/";
var guanzhuurl ="http://mp.weixin.qq.com/s?__biz=MzI4MjA2MjE0MQ==&mid=246005295&idx=1&sn=490f8141976d607ba079d48f52a3fcd7#rd";
window.shareData = {
"imgUrl": "http://mmbiz.qpic.cn/mmbiz/2zpp2iaH4HWEUVrG2VrY0nz1bXevjqd9Wg0JsV9kTicApRia8Ov0jktRHJCuHUYJULLUBISsj5EJZOcXptSicUFRPA/640",
"timeLineLink": thegameurl,
"tTitle": "打我呀",
"tContent": "快來打我呀!"
};
function goHome(){
window.location=mebtnopenurl;
}
function clickMore(){
if((window.location+"").indexOf("f=zf",1)>0){
window.location =mebtnopenurl;
}
else{
goHome();
}
}
function dp_share(){
document.getElementById("share").style.display="";
}
function dp_Ranking(){
window.location=mebtnopenurl;
}
function showAd(){
}
function hideAd(){
}
document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.on('menu:share:appmessage', function(argv) {
WeixinJSBridge.invoke('sendAppMessage', {
"img_url": window.shareData.imgUrl,
"link": window.shareData.timeLineLink,
"desc": window.shareData.tContent,
"title": window.shareData.tTitle
}, onShareComplete);
});
WeixinJSBridge.on('menu:share:timeline', function(argv) {
WeixinJSBridge.invoke('shareTimeline', {
"img_url": window.shareData.imgUrl,
"img_width": "640",
"img_height": "640",
"link": window.shareData.timeLineLink,
"desc": window.shareData.tContent,
"title": window.shareData.tTitle
}, onShareComplete);
});
}, false);
</script>
<div id=share style="display: none">
<img width="100%" src="share.png"
style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
ontouchstart="document.getElementById('share').style.display='none';" />
</div>
<div style="display: none;">
<script type="text/javascript">
var myData = { gameid: "dwy" };
var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
window.shareData.timeLineLink = thegameurl;
function dp_submitScore(score,stitle){
myData.score = parseInt(score*100);
myData.scoreName ="用时"+score+"秒";
document.title =stitle;
window.shareData.tTitle = document.title;
}
function onShareComplete(res) {
if (localStorage.myuid && myData.score != undefined) {
setTimeout(function(){
if (confirm("?")) {
window.location = mebtnopenurl;
}
else {
document.location.href = mebtnopenurl;
}
}, 500);
}
else {
document.location.href = guanzhuurl ;
}
}
</script>
<div style="display: none;">
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
打我呀打我呀HTML5游戏源码

共124个文件
js:116个
png:5个
html:1个

1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
7 浏览量
2022-06-23
05:37:33
上传
评论
收藏 935KB RAR 举报
打我呀打我呀HTML5游戏源码,运行需要服务器环境,已经反复测试,放心使用。
资源详情
资源评论
资源推荐
收起资源包目录





































































































共 124 条
- 1
- 2









reg183
- 粉丝: 1626
- 资源: 1万+

上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0