Javascript



  • I do. http://www.newgrounds.com/projects/games/998044/preview And I have a problem with her loading. If we update the page a couple of times, it's all downloaded, but without that, like I didn't try to do, nothing works. If you need javascript code, I'll add it, it's just a lot.

    body{
     width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center; 
        overflow: auto;
     background: url("image/bg.png") repeat;
    }
    p{
        color: white;
        font-size: 50;
        margin-bottom: 0px;
    }
    <!DOCTYPE html>
    <html>
     <head>
      <meta charset="Utf-8">
      <title>
       Sietra
      </title>
      <link rel="stylesheet" type="text/css" href="style.css">
     </head>
     <body>
      <canvas width="960" height="576" id="canvas" style="z-index: 0;"><p>Ваша версия браузера не поддерживает Canvas.<br>Обновите браузер!</p></canvas>
      <script src="image.js"></script>
      <script src="variable.js"></script>
      <script src="engine.js"></script>
      <script src="character.js"></script>
      <script src="enemy.js"></script>
      <script src="game.js"></script>
     </body>
    </html>



  • I fixed everything by creating a button that's uploading a page unless it's downloaded.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2