H5游戏源码分享-像素小鸟游戏(类似深海潜艇)
点击屏幕控制小鸟的飞行高度
整个小游戏就用JS完成
项目地址:https://download.csdn.n服务器托管网et/download/Highning0007/88483228
小鸟飞飞飞-微资源娱乐小游戏
body {
margin:0px;
}
var mebtnopenurl = 'http://game2.id87.com/';
window.shareData = {
"imgUrl": "./icon.png",
"timeLineLink": "http://game2.id87.com/xiaoniaofeifei/",
"tTitle": "小鸟飞飞飞-微资源娱乐小游戏",
"tContent": "从前有一只鸟,飞着飞着就死了。"
};
服务器托管网 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
}, function(res) {
document.location.href = mebtnopenurl;
})
});
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
}, function(res) {
document.location.href = mebtnopenurl;
});
});
}, false);
function dp_submitScore(a,b){
if(a&&b>=a&&b>10){
//alert("新纪录哦!你过了"+b+"关!")
dp_share(b)
}
}
function dp_Ranking(){
document.location.href = mebtnopenurl;
}
function dp_share(t){
document.title = "我玩小鸟飞飞飞过了"+t+"关!你能超过洒家我吗?";
document.getElementById("share").style.display="";
window.shareData.tTitle = document.title;
}
很遗憾,您的浏览器不支持HTML5,请使用支持HTML5的浏览器。
这里加统计
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: 2023最新PS(photoshop)Win+Mac免费下载安装包及教程内置AI绘画-网盘下载
2023最新PS(photoshop)Win+Mac免费下载安装包及教程内置AI绘画-网盘下载 2023最新PS(photoshop)免费下载安装教程来咯~ 「PhotoShop」全套,win+mac: https://pan.quark.cn/s/9d8d8…