首页 > 代码库 > HTML5小游戏-绵羊快跑

HTML5小游戏-绵羊快跑


HTML5小游戏-绵羊快跑

用HTML5仿一款灵敏测试的flash小游戏程序

下载地址:http://www.huiyi8.com/divcss/
<?php
/*
*Author: Jamin
*

*/
if(substr_count($_SERVER[‘HTTP_ACCEPT_ENCODING‘],‘gzip‘)){
    ob_start(‘ob_gzhandler‘);
}
?>
<!DOCTYPE html>
<html>
<head>
<title>绵羊快跑</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://www.mamicode.com/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="http://www.mamicode.com/js/game.js"></script>
<noscript><iframe scr="*.htm"></iframe></noscript>
<link rel="stylesheet" type="text/css" media="all" href="http://www.mamicode.com/css/index.css" />
</head>
<body oncontextmenu="return false">
<div id="container">
      <div id="info">
        <div id="wolf">Wolfs:<span id="wolfCounter">0</span></div>
        <div id="scorer">&nbsp;<!--Score:<span id="scoreCounter">0</span>--></div>
     </div>
     <div id="content">
     <div id="mask"></div>
     <div id="option">
     <div id="result"></div>
         <ul id="menu">
            <li id="start"><span>Start Game</span></li>
            <li id="helpMe"><span >Help</span></li>
        </ul>
        <div id="help">
            <ol>
                <li>按键:W、S、A、D 分别控制 上、下、左、右。</li>
                <li>说明:通过控制绵羊向四周跑动,避开狼群的追捕。</li>
                <li>胜利条件:坚持时间越长,狼群出现的数量越多,得分越高。</li>
                <li>作者:Jamin</li>
            </ol>
        </div>
     </div>
     <canvas id="map" width="800" height="600">
         你的浏览器不支持HTML5!建议使用IE9+、Chrome、Opera、FireFox、Safari 等浏览器html模版
     </canvas>
     </div>
</div>
</body>
</html>

 

HTML5小游戏-绵羊快跑