index.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
  6. <meta name="theme-color" content="#000000">
  7. <title>ShipShoot</title>
  8. <style>
  9. html, body, #rogue-app {
  10. margin: 0;
  11. width: 100%;
  12. height: 100%;
  13. -webkit-user-select: none;
  14. -ms-user-select: none;
  15. user-select: none;
  16. background-color: #252933;
  17. overflow: hidden;
  18. }
  19. #rogue-engine-loading-logo {
  20. color: white;
  21. animation-name: rogueengineloadinglogo;
  22. animation-duration: 2s;
  23. animation-iteration-count: infinite;
  24. transform-origin: 50% 50%;
  25. display: inline-block;
  26. top: calc(50% - 50px);
  27. right: calc(50% - 50px);
  28. height: 100px;
  29. width: 100px;
  30. position: absolute;
  31. }
  32. @keyframes rogueengineloadinglogo {
  33. 0% {
  34. transform: rotate(0deg);
  35. }
  36. 100% {
  37. transform: rotate(360deg);
  38. }
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <noscript>
  44. You need to enable JavaScript to run this app.
  45. </noscript>
  46. <img id="rogue-engine-loading-logo" src="AppData/RogueEngineLogo.svg">
  47. <div id="rogue-app"></div>
  48. <script>
  49. if (global === undefined) {
  50. var global = window;
  51. }
  52. function onRogueScriptLoaded() {
  53. var onPlay = window["rogue-engine"].Runtime.onPlay(()=>{
  54. document.getElementById("rogue-engine-loading-logo").remove()
  55. onPlay.stop();
  56. });
  57. }
  58. </script>
  59. <script onload="onRogueScriptLoaded()" src="AppData/build.js"></script>
  60. </body>
  61. </html>