html5跑酷类小游戏特效源码下载
1. 引入CSS
<link rel="stylesheet" href="kandi.css" type="text/css" media="screen">
2. 引入JS
<script type="text/javascript" src="kandi.js"></script>
3. HTML代码
<h3>按空格键跳跃</h3> <div class="wrapper"> <canvas id="canvas" width="800" height="480"> <p>You're browser does not support the required functionality to play this game.</p> <p>Please update to a modern browser such as <a href="http://www.wangzhanmuban.cn/" target="_blank">网站模板</a> to play.</p> </canvas> <div id="game-over"> <a href="javascript:void(0);" class="restart" id="restart">再试一次?</a> </div> </div>