index.html 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Inspector - test</title>
  5. <meta charset='utf-8'/>
  6. <meta name="viewport" content="width=device-width, user-scalable=no">
  7. <!--Babylon-->
  8. <script src="../tools/DevLoader/BabylonLoader.js"></script>
  9. <style>
  10. .mini {
  11. width:100%;
  12. margin:auto;
  13. height:100%;
  14. }
  15. html, body {
  16. width: 100%;
  17. height:100%;
  18. margin:0;
  19. padding:0;
  20. overflow:hidden;
  21. font-family:sans-serif;
  22. }
  23. #game-canvas {
  24. width:100%;
  25. height:100%;
  26. }
  27. </style>
  28. </head>
  29. <body>
  30. <!--The game canvas-->
  31. <div class="mini">
  32. <canvas id="game-canvas"></canvas>
  33. </div>
  34. <!--Starting the game-->
  35. <script>
  36. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function() {
  37. new Test('game-canvas');
  38. });
  39. </script>
  40. </body>
  41. </html>