HTML5版捕鱼达人游戏源码

HTML5版捕鱼达人游戏源码

更新: 2017-11-9

阅读:757

捕鱼达人游戏是一款非常经典的休闲娱乐类,本款基于HTML5实现的捕鱼达人(fishjoy)网页游戏动画特效,代码适用于有需要的朋友们使用。此外,游戏中没有音效,自己动手添加吧。

PS:建议使用支持HTML5效果较好的火狐或谷歌等浏览器运行本源码。

HTML代码

<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="apple-touch-icon" href="images/icon.png"/>
<link rel="apple-touch-startup-image" href="images/icon.png"/>
<style type="text/css">body,div,canvas{image-rendering:optimizeSpeed;-webkit-image-rendering:optimizeSpeed;-webkit-interpolation-mode:nearest-neighbor;}body{padding:0;margin:0;font-size:12px;background-color:#000;}body,html{height:100%;}#outer{height:100%;overflow:hidden;position:relative;width:100%;}#outer[id]{display:table;position:static;}#middle{position:absolute;top:50%;}#middle[id]{display:table-cell;vertical-align:middle;position:static;}</style>
<title>我捕了xxx条鱼儿,全国捕鱼排名xxx名</title>
<script type="text/javascript" src="js/quark.base-1.0.0.alpha.min.js"></script>
<script type="text/javascript" src="src/R.js"></script>
<script type="text/javascript" src="src/Utils.js"></script>
<script type="text/javascript" src="src/fishjoy.js"></script>
<script type="text/javascript" src="src/FishManager.js"></script>
<script type="text/javascript" src="src/FishGroup.js"></script>
<script type="text/javascript" src="src/views/Fish.js"></script>
<script type="text/javascript" src="src/views/Cannon.js"></script>
<script type="text/javascript" src="src/views/Bullet.js"></script>
<script type="text/javascript" src="src/views/Num.js"></script>
<script type="text/javascript" src="src/views/Player.js"></script>
</head>
<body>
<div id="outer">
<div id="middle">
<div id="container" style="position:relative;width:980px;height:545px;top:-50%;margin:0 auto;"></div>
<div id="msg"></div>
</div>
</div>
<div id="fps" style="position:absolute;top:0;left:0;color:#fff;"></div>
</body>
</html>