JS+Html5打造捕鱼游戏源码
- 作者:网页模板
- 大小:4.37MB
- 点击次数:
- 发布时间:2014-04-09 17:36
特效介绍
纯JS+Html5打造,不含任何flash元素。炮台可以更换成七种状态,鱼也有n种。不支持键盘操作。不兼容IE8以下内核的浏览器。使用方法
1、把下面的代码拷贝到您的html的头部:<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%;} /* for ie only*/ #middle[id]{display:table-cell; vertical-align:middle; position:static;} </style> <script type="text/javascript" src="js/quark.base-1.0.0.alpha.min.js"></script> <!--<script type="text/javascript" src="fishjoy.game.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>2、把以下代码拷贝到你想引用的地方
<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>
- 本文标签:
- JS捕鱼游戏源码,html5捕鱼代码