world.html 721 B

123456789101112131415161718192021222324252627
  1. <html>
  2. <head>
  3. <meta charset="UTF-8" />
  4. <script src="dist/frontend.js"></script>
  5. <style>
  6. body {
  7. background-color: black;
  8. }
  9. .mainscreen {
  10. border: solid 1px;
  11. margin-left: auto;
  12. margin-right: auto;
  13. display: block;
  14. background-color: white;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <canvas class="mainscreen" id="screen"></canvas>
  20. <div id="game-debug-out"></div>
  21. <script>
  22. astro.start('screen').catch(function (err) {
  23. console.error(err.toString());
  24. });
  25. </script>
  26. </body>
  27. </html>