Skip to content
Snippets Groups Projects
index.html 638 B
Newer Older
  • Learn to ignore specific revisions
  • Bye's avatar
    Bye committed
    <!-- maybe slightly copied from herebefrog -->
    
    Bye's avatar
    Bye committed
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <style>
    
    Bye's avatar
    Bye committed
      :root { color-scheme: light dark; }
    
    Bye's avatar
    Bye committed
      body { display: flex; justify-content: center; align-items: center; height: 100vh;}
      canvas, body {
        margin: 0;
        touch-action: none;
    
    Bye's avatar
    Bye committed
        -webkit-user-select: none;
    
    Bye's avatar
    Bye committed
        user-select: none;
      }
      canvas {
    
    Bye's avatar
    Bye committed
        width: calc(256px * 3);
        height: calc(240px * 3);
    
    Bye's avatar
    Bye committed
        object-fit: contain;
        image-rendering: pixelated;
        margin: auto;
      }
    </style>
    <body>
      <canvas id=c></canvas>
      <script type="module" src=game.js></script>
    </body>