index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Fourteen Screws Engine</title>
  6. <style>
  7. body {
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. margin: 0;
  12. width: 100%;
  13. height: 100%;
  14. display: flex;
  15. flex-direction: column;
  16. align-items: center;
  17. justify-content: center;
  18. }
  19. #canvas {
  20. width: 1280px;
  21. aspect-ratio: 8/5;
  22. }
  23. </style>
  24. <!-- Google tag (gtag.js) -->
  25. <script defer src="https://analytics.fourteenscrews.com/script.js" data-website-id="1c395c19-385d-4424-a36d-7da2de92e64d"></script>
  26. </head>
  27. <body style="text-align: center">
  28. <noscript>This page contains webassembly and javascript content, please enable javascript in your browser.</noscript>
  29. <div id="controls">w, s, a, d = forward, back, strafe left, strafe right | &uarr;, &darr;, &larr;, &rarr; = look up, look down, turn left, turn right</div>
  30. <div id="fps"></div>
  31. <canvas id="canvas" width="320" height="200"></canvas>
  32. <div id="joystick-left" style="width: 30%; aspect-ratio: 1; position: fixed; bottom: 0px; left: 0px; z-index: 99999"></div>
  33. <div id="joystick-right" style="width: 30%; aspect-ratio: 1; position: fixed; bottom: 0px; right: 0px; z-index: 99999"></div>
  34. <script src="./bootstrap.js"></script>
  35. <script src="./vendor/JoyStick/joy.min.js"></script>
  36. </body>
  37. </html>