Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

index.html

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