<!DOCTYPE html>
<html lang="zh_CN">
<head>
<style type="css/jzfz.css"></style>
<link rel="stylesheet" href="css/stylesheet.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=11">
<meta name="description" content="这是一款 HTML5 开发的 CXK 打篮球小游戏,无聊的时候玩玩吧!">
<meta name="keywords" content="CXK,打篮球,游戏,弹球,篮球,HTML5,开源,caixukun,CXK出来打球,你打篮球像CXK">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css?s=2">
<title>CXK打篮球 - IKUN</title>
<!--<link rel="stylesheet" href="css/common.css">-->
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.0/showdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!--百度站长平台-->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a0e2b5984036fe94ed92c8af2247a465";
var s = document.getElementsByTagName("script")[0]
s.parentNode.insertBefore(hm, s);
})();
</script>
<!--背景音乐开始(已删除)-->
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-12">
<h2>CXK 打篮球</h2>
<p>CXK,出来打球!</p>
<hr>
<center>
<p>
<div class="input-group">
<span class="input-group-addon">难度</span>
<select class="form-control" id="ballspeedset">
<option value="2">简单难度(Speed 2)</option>
<option value="3" selected>普通难度(Speed 3)</option>
<option value="5">困难模式(Speed 5)</option>
<option value="7">极限模式(Speed 7)</option>
<option value="9">非人类(Speed 9)</option>
</select>
<div class="input-group-btn">
<button type="button" class="btn btn-danger" onclick="window.startGame()">开始游戏</button>
<button type="button" class="btn btn-warning" onclick="window.pauseGame()">暂停游戏</button>
<button type="button" class="btn btn-success" onclick="window.nextGame()">下个关卡</button>
</div>
</div>
</p>
</center>
<center id="cdiv" style="width: 100%;">
<p><canvas id="canvas" style="width: 100%;height: 563px;"></canvas></p>
</center>
<div>
<div id="left-container">
<button>左移动</button>
</div>
<div id="right-container">
<button>右移动</button>
</div>
<br>
<hr>
<h3>游戏说明</h3>
<p>使用方向键控制 CXK 左右移动,使用回车让 CXK 发球,按 P 暂停游戏,通关后按 N 进入下一关</p>
<p>特殊技能:W 发起虚鲲鬼步,5 秒内能 100% 接住球,每次消耗 1000 积分。</p>
<p><strong>移动端可以点击两侧按钮左右控制 CXK 移动</strong></p>
<p></strong><font color="#FF0000">注:移动端需要点两下开始游戏才会开始。</font></strong></p>
<h3>网站问题</h3>
<p>如网站没声音就是浏览器禁止了,解决方法自行百度,或者换成其他浏览器,如360浏览器。如果还不行,可以点击下面的音乐卡片播放按钮。</p>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=1340439829&auto=1&height=66"></iframe>
<p>手机上长按“右移动”或“左移动”它会弹出复制,这个只需要更换浏览器即可。</p>
<h3>关于源码</h3
<p>如果想要源码请到www.fkuoa.com或者添加QQ群:444126221 免费下载。</p>
<p>我只是在源码中写了一些代码,并没有多大改变,想要原版群里也有。</p>
<p>本源码由飔梦二开,哔哩哔哩个人主页:<a href="https://space.bilibili.com/1042616002">点击查看</a></p>
<hr>
<hr>
<hr>
</div>
</div>
</div>
</body>
<!-- 图片预缓存 -->
<img src="images/ball.png" style="width: 0px;height: 0px;" />
<img src="images/ballshadow.png" style="width: 0px;height: 0px;" />
<img src="images/paddle_1.png" style="width: 0px;height: 0px;" />
<img src="images/paddle_2.png" style="width: 0px;height: 0px;" />
<img src="images/paddle2_1.png" style="width: 0px;height: 0px;" />
<img src="images/paddle2_2.png" style="width: 0px;height: 0px;" />
<img src="images/paddle3_1.png" style="width: 0px;height: 0px;" />
<img src="images/paddle3_2.png" style="width: 0px;height: 0px;" />
<img src="images/paddle4_1.png" style="width: 0px;height: 0px;" />
<img src="images/paddle4_2.png" style="width: 0px;height: 0px;" />
<!-- 背景音乐(已删除) -->
<!-- 弹窗代码开始 -->
<script src="js/gonggao.js"></script>
<script>
swal('本站状态:稳定运行中','本源码由飔梦二开,如需源码请加Q群:444126221','success'); function AddFavorite(title, url) {
try {
window.external.addFavorite(url, title);
}
catch (e) {
try {
window.sidebar.addPanel(title, url,);
}
catch (e) {
alert("抱歉,您所使用的浏览器无法完成此操作。");
}
}
}
</script>
<!-- 弹窗代码结束 -->
<!-- <audio src="" style="width: 0px;height: 0px;border: 0px;" id="audio" loop="-1"></audio> -->
<script src="js/common.js?s=4"></script>
<script src="js/scene.js?s=4"></script>
<script src="js/skills.js?s=4"></script>
<script src="js/game.js?s=4"></script>
<script src="js/main.js?s=4"></script>
<script>
var clientWidth = document.body.clientWidth;
var cxk_body = 1;
var move_way = 1;
canvas.width = canvas.clientWidth;
canvas.style.width = canvas.clientWidth + "px";
cdiv.style.width = cdiv.clientWidth + "px";
canvas.height = canvas.clientWidth / 1000 * 563;
canvas.style.height = canvas.clientWidth / 1000 * 563 + "px";
cdiv.style.height = cdiv.clientWidth / 1000 * 563 + "px";
if(canvas.width < 936) {
canvas.width = 936;
canvas.height = 936 / 1000 * 563;
canvas.setAttribute("style", "");
canvas.style.zoom = (cdiv.clientWidth / 936);
} else {
}
window.startGame = function() {
// $("#audio").attr("src", "media/jntm.m4a");
// audio.play();
window.cacheBallSpeed = parseInt($("#ballspeedset").val());
$("#ballspeedset").attr("disabled", "disabled");
_main.start();
setInterval(function() {
if(cxk_body == 1) {
_main.paddle.image.src = "images/paddle2_" + move_way + ".png";
cxk_body = 2;
} else if(cxk_body == 2) {
_main.paddle.image.src = "images/paddle3_" + move_way + ".png";
cxk_body = 3;
}else if(cxk_body == 4){
_main.paddle.image.src = "images/paddle4_" + move_way + ".png";
cxk_body = 3;
} else {
_main.paddle.image.src = "images/paddle_" + move_way + ".png";
cxk_body = 1;
}
}, 150);
setInterval(function() {
_main.ballshadow.y = 545;
_main.ballshadow.x = _main.ball.x;
}, 10);
}
</script>
</html>