<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width,user-scalable=no,initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>超级染色体</title>
<link type="text/css" href="css/game_base.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="js/game_base.js"></script>
<script type="text/javascript" src="js/createjs-2013.12.12.min.js"></script>
<script type="text/javascript" src="js/createjs_game.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<style type="text/css">
.follow {
z-index: 100;
position: absolute;
left: -500px;
bottom: 0px;
width: 20%;
opacity: 0;
}
.follow img {
width: 100%
}
.moreGames {
z-index: 100;
position: absolute;
bottom: 10px;
margin-left: auto;
margin-right: auto;
width: 100%;
text-align: center;
}
.moreGames a {
font: 11px Arial;
text-decoration: none;
background-color: #C0C0C0;
color: #FFFFFF;
padding: 2px 10px 2px 10px;
border-radius: 8px;
-webkit-border-radius: 8px;
}
</style>
</head>
<body>
<canvas id="stage">
您的浏览器不支持html5, 请换用支持html5的浏览器
</canvas>
<script language=javascript>
var mebtnopenurl = 'games.vdcom.cn/'; //更多游戏链接
var myscore=0;
var mylevel=0;
window.shareData = {
"imgUrl": "./img/icon.png", //分享时的图片
"timeLineLink": "./index.html", //分享时的链接
"tTitle": "超级染色体", //分享时的title
"tContent": "超级染色体" //分享时的内容
};
function goHome(){
window.location=mebtnopenurl;
}
function clickMore(){
goHome();
}
function dp_share(){
document.title ="我用了"+score+"步完成了超级染色体,你也来试试吧!";
document.getElementById("share").style.display="";
window.shareData.tTitle = document.title;
}
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="img/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 = {};
function dp_submitScore(score,level){
myscore=score;
mylevel=level
myData.score = score;
myData.scoreName = score+"步";
if(score>5){
if (confirm("真行,你用了"+score+"步!要不要通知下小伙伴们呢?")){
dp_share();
}
}
}
function onShareComplete(res) {
document.location.href = mebtnopenurl;
}
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
超级染色体源码.zip
共35个文件
png:18个
mp3:6个
js:6个
需积分: 5 0 下载量 137 浏览量
2023-07-29
23:55:36
上传
评论
收藏 746KB ZIP 举报
温馨提示
小游戏源码
资源推荐
资源详情
资源评论
收起资源包目录
超级染色体源码.zip (35个子文件)
超级染色体
cjrst
js
createjs_game.js 7KB
jquery.cookie.js 1KB
createjs-2013.12.12.min.js 150KB
main.js 13KB
jquery-2.1.0.min.js 82KB
game_base.js 1KB
audio
5.mp3 4KB
6.mp3 4KB
4.mp3 4KB
3.mp3 4KB
2.mp3 4KB
1.mp3 4KB
img
playbtn.png 2KB
redbtn.png 249B
banner.jpg 161KB
gameover.png 5KB
topbtn.png 2KB
sharebtn.png 4KB
bluebtn.png 249B
greenbtn.png 249B
purplebtn.png 249B
share.png 10KB
bg.jpg 349KB
discription.png 11KB
yellowbtn.png 249B
step.png 1KB
maxscore.png 3KB
curscore.png 3KB
help.jpg 149KB
icon.png 2KB
pinkbtn.png 249B
gameoverbg.png 212B
css
game_base.css 665B
index.html 4KB
icon.png 2KB
共 35 条
- 1
资源评论
a520521bc
- 粉丝: 75
- 资源: 1581
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功