拷皮吧 关注:1贴子:26
  • 3回复贴,共1

前端游戏之吃豆人

只看楼主收藏回复



1楼2019-02-18 09:19回复
    HTML 代码:


    2楼2019-02-18 09:21
    回复
      2025-09-17 17:01:28
      广告
      不感兴趣
      开通SVIP免广告
      <html>
      <head>
      <meta charset="utf8">
      <title>吃豆游戏</title>
      <link rel="shortcut icon" href="favicon.png">
      <style>
      body{background-color: #292929}
      *{padding:0;margin:0;}
      .wrapper{
      width: 960px;
      margin:0 auto;
      line-height:36px;
      text-align:center;
      color:#999;
      }
      canvas{display:block;background: #000;}
      .mod-botton{
      height: 32px;
      padding: 15px 0;
      text-align: center;
      }
      </style>
      </head>
      <body>
      <div class="wrapper">
      <canvas id="canvas" width="960" height="640">不支持画布</canvas>
      <p>按[空格]暂停或继续</p>
      </div>
      <script src="game.js"></script>
      <script src="index.js"></script>
      </body>
      </html>


      3楼2019-02-18 09:21
      回复
        js:


        4楼2019-02-18 09:22
        回复